OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
IE5.01 CSS offest rollover problems
This page's ID:
11175
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Again your dealing with the box-model hack. IE uses width and height to specify the width (height) of the content area of a block. The standard says that width (height) should specify the width (height) of the entire block. When you add the 5px margin to block IE adds the extra 10px (top and bottom) to the size of the div. All the other browsers keep the div height the same and reduce the amount of space allocated to the content area. There may also be some rounding error involved when the browser is renders the blocks. That may be what is causing the jumping when you only specify the bottom margin. In any case it is these differences between IE and the standard that cause differences in the way the divs are displayed. I try to avoid the use of both margin and display in the same layout. If i need margins, I set the padding of all blocks to 0 and only give margins for any blocks. And vice versa. -- not necessarily stoned... just beautiful. [url=http://www.hyperbole-software.com/] [img]http://www.hyperbole-software.com/ozone/hyperbole-88x33.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »