Tuesday, February 1, 2011
Force IE6, IE7 and IE8 to be more compliant
Target IE6 and IE7 with CSS
#myelement
{ color: #999; /* shows in all browsers */
*color: #999; /* notice the * before the property - shows in IE7 and below */
_color: #999; /* notice the _ before the property - shows in IE6 and below */
}
Friday, February 5, 2010
IE6: Removing Padding on Input Checkbox
An easy way to get rid of the padding through CSS is by adding these styles to the checkbox:
margin:0; width:13px; height:13px; overflow:hidden;
Thursday, February 4, 2010
Images in LABEL tag no clickable in IE
Wednesday, January 14, 2009
IE6 Problem with Form Submit Image Buttons
A lot of times we use images as our submit buttons for forms. I'm sure you've seen it a lot. Well, say you wanted to test if the form was submitted and used the standard way, lets say in PHP, of seeing if the submit button was sent, for example like this:
if (isset($_REQUEST['mysubmitbutton']))
{ ...}
With IE6 this wouldn't work if your submit button was an image. So if you had this as your submit button:
<input name="mysubmitbutton" type="image" value="1" src="someimage.png" alt="" />
Then your script wouldn't work. The reason is that IE6 WILL NOT send over the variable mysubmitbutton.
The workaround is to know that IE6 will send over other information (along with all other browsers). It sends the x and y coordinates of where you clicked on the image. So you'll see mysubmitbutton_x and mysubmitbutton_y. So if you modify your code to look for either of these variables, you'll be good to go!
Credit is to be given to this discussion forum: Differences in form handling btw Mozilla and IE?
Friday, November 21, 2008
IE6 margin fix
When floating a < div > in Internet Explorer 6 and any kind of a margin ... it doubles the amount ... of course it does. That is exactly what IE6 should do. Especially since FireFox, and all the others actually set the margin to the number specified.
This guy posted the fix... it's pretty simple. Just add "display:inline" to the CSS attribute.
http://www.positioniseverything.net/explorer/doubled-margin.html
Matt Crigger
http://www.phirebranding.com