Previous Message
Next Message

Stopping div extending underneath floated image

Sent by Gary Benson on 7 July 2007 13:01


ron zisman wrote:
> On Jul 7, 2007, at 6:47 AM, Gary Benson wrote:
> > ... on the main page (http://www.relaxshiatsu.co.uk/) there is a
> > floated image and the box extends underneath it.  Is there some
> > way I can make the div fill only the width available to it and no
> > more?  I know I can do it by giving it an absolute width, but I
> > wondered if there's a neater way.
> 
> Add...
> 
> #findOutMore {overflow: hidden; zoom: 1; }
> 
> ... and the box will auto-adjust to the float as/when necessary.
> 
> The method is described here...
> <http://www.gunlaug.no/contents/wd_example_01_02.html>

Oh, that's perfect, thanks :)
But what is the "zoom: 1" for?

Cheers,
Gary

--
shiatsu in Bath -- http://www.relaxshiatsu.co.uk/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
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: