mbe.ro
<h2>What is this web-site?</h2> <br/> <start_coding(); //just some tips and tricks for web programmers<br/>echo "Hope this is helpful to you";<br/>?>

Most common IE bug: double margin

February 24, 2009 at 9:29 PM

In IE6 and IE7, for those that don’t know, margin-left and margin-right are doubled. If you should have this problem here are some bug fixes:

1. The element which has margin-left and margin-right set to let’s say 10px, add display:inline to it (if you can). If you want it to have width and height as well add float:left or float:right to it.

2. If you cannot afford to add display:inline (it would be too much for the style view), just add _margin-left and _margin-right to the css. These are only compiled by IE. (just about anything with and underline in front of it is compiled just by IE)

No Comments

Nobody has posted any comments to this article. Be the first to post a comment.

Add a comment

Name:
 
Email:
 
Website:
 
Comment: