Re: [css-d] need help on vertical alignement

2007-12-23 Thread Jim Davis
Pat,

When you use height: 100% you have to ask yourself the question what is it
100% of? Since you did not specify the height of the containing element or
the body, the browser can't calculate the height.

Here is an example of two floated divs, with a height of 100%,  inside of a
fixed height container: http://www.jimdavis.org/test/heights.html

This approach would only work if you were certain the content would always
fit vertically within the specified height of the container, or use one of
the overflow rules to deal with the additional content.

To accommodate an unknown height it is common to use the faux columns
technique. Here is an example I did:
http://www.jimdavis.org/test/heights2.html

You can read this for more information:
http://www.alistapart.com/articles/fauxcolumns/

Jim

On Dec 21, 2007 9:03 PM, Patrick Aljord [EMAIL PROTECTED] wrote:

 Hi all,
 I need help for those two divs details and body in my container,
 they don't have the same height and I would like them to have the same
 height. Any way to do this with css?

 here is the page: http://p80.free.fr/testy/dropdown/test.html

 thanks in advance

 Pat
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] need help on vertical alignement

2007-12-22 Thread Gunlaug Sørtun
Patrick Aljord wrote:
 Hi all, I need help for those two divs details and body in my 
 container, they don't have the same height and I would like them to 
 have the same height. Any way to do this with css?
 
 here is the page: http://p80.free.fr/testy/dropdown/test.html

Yes, same height is no problem at all with CSS table...
http://www.w3.org/TR/CSS21/tables.html

However, IE/win doesn't support that part of the CSS specs at all, so we
usually don't bother. Fun to try though...
http://www.gunlaug.no/tos/moa_11h.html
...and I have listed a few alternatives on top of this article on the
subject...
http://www.gunlaug.no/contents/wd_additions_22.html

regards
Georg
-- 
http://www.gunlaug.no
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] need help on vertical alignement

2007-12-21 Thread Patrick Aljord
Hi all,
I need help for those two divs details and body in my container,
they don't have the same height and I would like them to have the same
height. Any way to do this with css?

here is the page: http://p80.free.fr/testy/dropdown/test.html

thanks in advance

Pat
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/