Usually when I do something like this, I would add a container div
around the entire area with a width and left floated div around the H1
element and set a width for that as well, leaving the silver 'float'
element you already have as-is.
On May 10, 2005, at 10:04 AM, Jonathan Abbett wrote:
> [I apologize if this question has been asked before. I haven't yet
> been able to formulate any Google queries that return information
> related to my problem, so this post is a last resort!]
> My issue is such: I have a DIV which is set to float to the right.
> Next to the DIV (on the left), I have an element containing text with
> a background and/or border. The text accurately wraps around the
> floating DIV, but the background and border span the width of the page
> and appear "below" the floated DIV.
> I have illustrated it here:
> (related CSS visible in source)
> As you can see from the illustration, I'd like to make the background
> and border of my left-side element respect the margins of the floated
> DIV, like the text does.
> Of course, if I haven't been clear enough, I'm happy to provide more
> Jon Abbett
> css-discuss [EMAIL-REMOVED]]
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/