Previous Message
Next Message

"Float" overlapping neighboring background/border

Sent by Diona Kidd on 10 May 2005 16:04


Jon,

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.

Diona



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:
>
> 	http://www.abbett.org/css_float_problem.html
> 	(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 
> details.
>
> Thanks!
> Jon Abbett
> [EMAIL-REMOVED]
>
>
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: