Sent by Chris Leversuch on 18 November 2004 14:02
> -----Original Message-----
> From: [EMAIL-REMOVED]
> [EMAIL-REMOVED]] On Behalf Of
> Jeremy Garrard
> Sent: 18 November 2004 13:39
> To: [EMAIL-REMOVED]
> Subject: [css-d] Newbie: Why do images cross DIV borders?
>
> Hi all, new to the list.
>
> Hope this isn't a stupid question, but If I have two very
> simple DIVs, with an image in the top one:
>
> <div class="block">
> <img src="bigpic.jpg" align="right" width="250"
> height="200" alt="A big picture" />
> <p>Some text blah blah blah etc</p>
> </div>
> <div class="block">
> <p>Some more text blah blah blah etc</p>
> </div>
>
> Why does the top div ignore the image when it is vertically
> sizing itself? The image just runs over into the second div
> which is not what I want. I want the top div to nicely
> contain the text AND image.
>
> Many thanks,
> Jeremy
>
I'm not sure of the technical reason, but you need to apply one of the
clearing fixes mentioned @
http://css-discuss.incutio.com/?page=ClearingSpace You'll find a similar
problem with <div>'s not being contained within other <div>'s
Chris
--
Chris Leversuch | www.leversuch.co.uk
______________________________________________________________________
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/