Technology TidBits

Answers to various technical questions on php programming, mysql, linux, and many more categories.



Showing: 1-20 of 22    »»
Questions:
How do I set up a meta-refresh in html?
Here's the HTML for it - the first field in the "content" string is the delay - 0 means immediate,...
Not rated 06/12/2009 Comments: 0
How can I open a new window using Javascript?
Use this format for your link code. Change out for the full URL of for the link. <a onclick="open(this.href,'_new','height=600,width=350,scrollbars=1,resizable=1');return false;" target="_new"...
Not rated 06/23/2009 Comments: 0
How can I slash out a price to denote a sale price in html and php?
Well, the easiest way is to use the <strike> tag in html.  This put a line through your text like...
Not rated 06/30/2009 Comments: 0
How do I force a page break for printable html documents?
This is not guaranteed to work on all browsers, but if you do something like this: <br style="page-break-before:always;"> ...
Not rated 06/11/2009 Comments: 0
How can I manipulate table borders in CSS and html?
Use the nice tool at this link:http://www.somacon.com/p141.phpIt lets you play with all table attributes, and then get the proper CSS...
Not rated 06/30/2009 Comments: 0
How can I disable the right mouse button on my HTML pages? (to discourage copying of images)
First, this is not a recommended thing to do.  It can prevent users from interacting with your site, and frustrate...
Not rated 06/24/2009 Comments: 0
How do I password protect a directory on my website?
Create a file in the protected directory called .htaccess (leading . is important)In that file, put these lines: AuthName "Section...
Not rated 06/24/2009 Comments: 0
Why do my web forms lose data when I hit the back button?
A common way to allow users to correct problems with their web form submission is to tell them to use...
Not rated 06/17/2009 Comments: 0
I'm seeing funny characters or boxes on my website after upgrading / moving to a new server. How do I fix it?
If you have any special characters in your html code, like », or ®, you need to make sure Apache...
Not rated 06/28/2009 Comments: 0
What order must I specify link styles in my css?
Getting links to look right in html / css always seems to be troublesome.  I found out that this is...
Not rated 06/30/2009 Comments: 0
Configuring htmleditor to do file uploads using php?
To enable htmleditor to use php for file uploads, edit the following files: edit: htmleditor/editor/filemanager/upload/php/config.php Change this line: $Config['Enabled'] = true; edit: /htmleditor/fckconfig.js Change...
Not rated 06/30/2009 Comments: 0
How can I get my article text to wrap-around an image on the page?
To have a block of text wrap nicely around an image, put this css code around the <img> tag: <span style="float:right; margin:...
Not rated 06/25/2009 Comments: 0
How can I make a vertical divider (like a horizontal rule) ?
HTML has a simple tag <hr> - the horizontal rule, which serves nicely as a quick divider for content.  However,...
rating 07/03/2009 Comments: 0
How can I make a nicer border for my html tables?
Here some simple css styles I use for a nice table setup: table: {border-collapse: collapse;border-width: 1px;border-style:outset; } td: { border-width:1px;padding:2px;border-style:inset; } Here's a...
Not rated 06/23/2009 Comments: 0
How can I set up a proper 301 redirect with an htaccess file?
When moving pages around on your website, it's important to set up redirects to the new pages, so that search...
Not rated 09/06/2010 Comments: 0
How can I get a "hint" to pop up when I mouseover a link on my site?
Add this parameter to your <a> tag: title="This is a hint"So your full link should like something like this: <a href="/index.php"...
Not rated 09/06/2010 Comments: 0
How can I remove indents from my <ul> lists in css?
The default indent on an unordered list is often too much.  To back it out a bit, use this css...
Not rated 09/06/2010 Comments: 0
Why do I have mce_serialized="1" showing on my website?
Many content management systems use the TinyMCE editor to allow for easier editing of content.  The editor allows you to create...
Not rated 09/06/2010 Comments: 0
How can I position a <div> element for differing screen resolutions and widths?
A problem I've run into several times now is to position an element in a certain spot on a website...
Not rated 09/06/2010 Comments: 0
How do I enable SSI (Server Side Includes) on IIS 7.x (1&1 dedicated sever) ?
By default, SSI was not enabled or installed on my dedicated server.  After some hunting, I found this sequence to...
Not rated 09/06/2010 Comments: 0



Powered by KnowledgebasePublisher 1.1
Superb Internet
Content provided by Roberts WebForge, Inc.