OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
IE height issues with floating css
This page's ID:
11170
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
1) It'd be much better to make the top div have a "border-bottom:#000 2px solid;" than to have another div try to accomplish that simple visual cue. It'd also be much cleaner mark-up: the 2nd div would be strictly a style thing, whereas the markup should be only the structure of the page. 2) The reason you have issues with the height is the line-height attrribute. By default, the line-height is calculated based on your font size. So, you sepcify the div to be 2px tall, and the browser also adds the logical space for text to appear given the line-height. If you set the line-height to 0, it should sove the issue. 3) Please use the method in number 1 to fix this problem. Number 2 explains why, but won't fix the inherent problem of using markup to solve stylistic issues and will only continue to cause problems of various kinds. 4) get rid of the 'transitional' doctype. strict is, IMO, the only way to go. [This message has been edited by DL-44 (edited 03-13-2004).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »