- collection is read only exception
- PayPal sending incorrect carrier information
- paypal guest user notice
- classic asp dictionary not working
- IE8 not supporting innerHTML
- differences between jet and odbc
- sugarcrm not inserting email
- select random records from access
- button click event firing twice
- how to send an email using cdosys
- installing perl on win2003 64 bit
- asp.net page event order
- rewrite rule for subdomains only
- extra items in javascript array
- IE7 margin auto not working
- IE7 border style dotted glitch
- ByRef and ByVal in vbscript
- weather rss feed
- Classic asp crib sheet
- Firefox onsubmit image change
- limit records in access
- AccessDataSource is thick
- double margins in IE6
- extra image padding in html emails
- decimal places in linux flash player
- broken emails in outlook 2007
- double spaced IE list items
- cannot remove movieclip
articles:
double margins in IE6
This is a special feature in IE6. If you have an element set to float: left, and specify a left margin for that element, IE6 will kindly double that left margin for you.So for example:
<div style="float: left; margin-left: 10px">hello world</div>
will have a left margin of 20px in IE6. A useful feature I'm sure you'll agree. Once you have had your fill of this IE based delicacy you can fortunately remove it using this little gem:
<div style="float: left; margin-left: 10px; display: inline">hello world</div>
Yes, thats right the humble display: inline is all you need. Of course if for some reason you can't use display: inline; you will have to use some IE specific css that has the left margin set to half of what you really want it.
<div style="float: left; margin-left: 10px">hello world</div>
will have a left margin of 20px in IE6. A useful feature I'm sure you'll agree. Once you have had your fill of this IE based delicacy you can fortunately remove it using this little gem:
<div style="float: left; margin-left: 10px; display: inline">hello world</div>
Yes, thats right the humble display: inline is all you need. Of course if for some reason you can't use display: inline; you will have to use some IE specific css that has the left margin set to half of what you really want it.
Comments
There are no comments on this article yet, be the first to leave one
Post a comment
