PDA

View Full Version : CSS DIV Height Problems


Mrajprice87
12-03-2007, 04:41 PM
Hi guys, I am looking for a solution to a problem I have.

If you look at this link:

http://cob290.bit-universe.com/

You see the navigation div on the left and the main div part of the page on the right. Basically, we want the main div to expand when information is entered, rather than the scroll bar appearing. So we set the div to auto height, so it adjusts depending on the data within the div. However, this means that the nav div line does not line up with the main div line and looks really bad. If I put the nav div on auto, then it will only be as big as the links that I have.

Basically, I am after a way for a div's height being dependent of another div's height.

Any help you could give me on this matter would be great,

Regards,

Andy

effpeetee
12-03-2007, 05:36 PM
http://www.projectseven.com/tutorials/css/pvii_columns/

This is a useful site. Faux columns are the usual way to tackle this.

Many more useful sites in my signature url "Sources"

Frank

Mrajprice87
12-03-2007, 09:51 PM
Great link, problem is that I have to make the website work without JavaScript or cookies. Is this the only way?

rmedek
12-03-2007, 10:04 PM
Read this and fake it with images and CSS:

http://www.alistapart.com/articles/fauxcolumns/