OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Questions about "display: compact"
This page's ID:
10827
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
Well, float works like a charm--except for one little thing. According the CSS2 specs: [quote]Since a float is not in the flow, non-positioned block boxes created before and after the float box flow vertically as if the float didn't exist.[/quote] Now, the way I have things set up is like this (try to imagine this, because I don't have any place to put a screen shot right now): [b]Heading[/b] [i]img[/i] explanatory text... The images aren't all that big, but the text varies in length as it is, sometimes running longer than the image, sometimes not. When it runs longer, there is the proper amount of white space before the next heading, but if the text is shorter than the image, it looks cramped (because the float isn't calculated in the flow). Which is the way it's supposed to work, of course, but it kind of sucks for what I'm trying to do. I've racked my brain and read the specs over and over, and the only thing I can think to do to make it work with float is to make sure that the text runs longer than the image. It also occured to me that it might work if I put the float and the text in a "container" div, but that seems a bit forced. Is that the best way to do it, or am I missing something? [Edit: Um, OK, scratch that last part; putting it all in a container div doesn't work, as the float doesn't force the bottom of the div box down--basically leaving me with what I'm started. Now I'm stumped...] [This message has been edited by Suho1004 (edited 10-21-2002).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »