Previous Message
Next Message

Div with height that changes with content?

Sent by Michael Duff on 3 February 2005 20:08


Neil,
you can apply this auto clearing method.

http://www.positioniseverything.net/easyclearing.html

This should solve your problem (and hopefully not make new ones)

Mike

Neil Lee wrote:

> Hi folks -
>
> I'm having a heck of a time getting a particular bit of code to work, 
> and could really use a fresh pair of eyes (and brains) to give me some 
> help.
>
> I have a set of divs, each which contains a smaller div floated left 
> and an unordered list that I am floating right. A screenshot of what I 
> have working is here:
>
> <http://homepage.mac.com/thenonsuch/stuff/css_list.png>
>
> My dilemma is that I am currently setting the height of the containing 
> div as well as the smaller div (the one with the month in it). If the 
> unordered list is longer than five lines the extra lines disappear 
> under the next containing div.
>
> Any anyone help me figure out how to get both of the div's heights to 
> stretch based on how much content is in the unordered list? Any help 
> is really appreciated...

______________________________________________________________________
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:

Possibly related: