467,910 Members | 1,865 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

div lengths


I have 2 vertical div's that are parrallel to each other. The both have; padding:10px; margin:10px; background-color:#FFFFFF;. So you can see the body background between the div's. The left div is a menu bar so has a set length. The right div contains the main content and hence the height of this div varies dependant on its content.

Ideally i want these divs to be the same length. can anyone tell me how i do this so that the menu div height is the same as the content div?

Apr 25 '07 #1
  • viewed: 1385
3 Replies
Expert 4TB
Google for "faux columns" as one method. Other ways include creating a wrapper div around the two inside divs and setting the height of the wrapper. Then making the two inside divs height:100% of the parent.
Apr 25 '07 #2
i've tried to used the height funmction before but it never seems to work - cheers for the tip tho...
Apr 27 '07 #3
Expert 4TB
Height depends on other elements being set which is why it sometimes appears not to work.
Apr 27 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by superprad | last post: by
2 posts views Thread by superprad | last post: by
8 posts views Thread by Hal Vaughan | last post: by
8 posts views Thread by bozzzza | last post: by
reply views Thread by Jeff Rush | last post: by
9 posts views Thread by Chris Bowlby | last post: by
1 post views Thread by Anne | last post: by
4 posts views Thread by chy1013m1 | last post: by
3 posts views Thread by andrews | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.