Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically resize divs in two column layout

Status
Not open for further replies.

supermatchgame

Programmer
May 16, 2007
50
GB
I'm using a standard header --> two columns (30 / 70 split) --> footer CSS layout for the forms that I am working on. I'm having problems keeping both the nav and content divs the same height.

I can make them both the same height (i.e. 500px) in the style sheet. But if I do this the forms that use datagrids to display search content look rubbish - the datagrid expands over the bottom of the fixed div. If I specify no height value then the div resizes properly no matter how many results are displayed in the grid but the nav div doesn't increase its height in tandem - so I get a load of white space under the nav div which just looks amateurish. Setting the height to 'auto' has no effect (but then I don't really see why it would so ignore that last comment).

Has anyone got any good advice about this?
 
Search for 'faux columns'.

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top