Relative div Height (NOT POSITION)

This is a discussion on "Relative div Height (NOT POSITION)" within the Web Page Design section. This forum, and the thread "Relative div Height (NOT POSITION) are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 27th, 2005, 00:08
New Member
Join Date: Jun 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Relative div Height (NOT POSITION)

Hi Guys, i'm trying to convert my table layout to CSS i currently have a 2 main divs(header and main), the header houses the banner, The second div, main is intended to house the rest of the page.

Main div houses 3 further divs, left side page navigation(nav), centre content(content), and right side navigation(rnav).

The main div is important because i want to have margin lines around the 3 smaller divs, however i'm having trouble making the main div's height adjust correctly.

I want to do this because contents isnt a set size, is there a way of the div size being relative to the content of the divs within the main div?

I'm extremely bad at explaining but for a visual example of what i mean see http://hp-h.com/p/amin/sma/html/front.html

my actual stylesheet lives at

http://hp-h.com/p/amin/sma/css/main.css

can anyone give me any pointers on how to do this? it would be most helpful
Reply With Quote

  #2 (permalink)  
Old Jul 5th, 2005, 20:07
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
If your main div does not contain any graphical elements and simply houses the divs > holds them within a set Width only:>

You can set the main div width, and either leave the height blank or 'auto'
hopefully this will adjust when the divs contents expand downwards.

i say hopefully as I have been playing around with this sort of issue over the last week via trial and error, it really depands on all the variables you add.
Reply With Quote
Reply

Tags
relative, div, height, position

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
relative linking in php sudhakararaog PHP Forum 1 Mar 12th, 2008 23:43
Can <span></span> tags have position relative? Oak Web Page Design 13 Mar 9th, 2008 17:04
How to make a table height equal to the browser height ? subhadip Starting Out 4 Sep 20th, 2007 07:56
Is it possible to position something relative something else? the newbie web designer Web Page Design 7 Feb 22nd, 2007 18:04
relative position problem antonyx Web Page Design 12 Dec 30th, 2005 21:19


All times are GMT. The time now is 13:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43