HighDots Forums  

div tag positioning issues

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss div tag positioning issues in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff Butler
 
Posts: n/a

Default div tag positioning issues - 10-07-2003 , 08:12 PM






Hi

I'm coding a page which has the following layout.

<div id="header">
header
</div>
<div id="navigation">
navigation
</div>
<div id="content">
<div id="column one ">column one</div>
<div id="column two">column two</div>
<div id="column three ">column three</div>
</div>

The issue arises because the header of the site needs to grow and contract
with the content in it, so I can't give column's one two and three absolute
positions because these change with the height of the header, I have tried
giving each a relative position with a negative top value, which positions
everything in the right place and the content moves up and down with the
header, but this results on a lot of extra white space at the bottom of the
page.

If anyone has got any solution, ideas I would be indebted.

Cheers Jeff



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: div tag positioning issues - 10-08-2003 , 01:35 AM






Jeff Butler wrote:

Quote:
The issue arises because the header of the site needs to grow and contract
with the content in it, so I can't give column's one two and three
absolute positions because these change with the height of the header
Put them inside a container in normal flow (i.e. so it sits after the
header) and position them inside that (i.e. by utting position: relative on
the container).

--
David Dorward http://dorward.me.uk/


Reply With Quote
  #3  
Old   
Stephen Poley
 
Posts: n/a

Default Re: div tag positioning issues - 10-08-2003 , 08:35 AM



On Wed, 8 Oct 2003 14:12:53 +1300, "Jeff Butler" <jeffis (AT) itagain (DOT) co.nz>
wrote:

Quote:
The issue arises because the header of the site needs to grow and contract
with the content in it, so I can't give column's one two and three absolute
positions because these change with the height of the header, I have tried
giving each a relative position with a negative top value, which positions
everything in the right place and the content moves up and down with the
header, but this results on a lot of extra white space at the bottom of the
page.

If anyone has got any solution, ideas I would be indebted.
Use floats. I have a couple of example layouts on my site (see sig) that
might offer some inspiration.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #4  
Old   
Jeff Butler
 
Posts: n/a

Default Re: div tag positioning issues - 10-08-2003 , 09:05 PM



Hey Stephen,

Thanks for your help, that worked perfectly.

Cheers Jeff


"Stephen Poley" <sbpoleySpicedHamTrap (AT) xs4all (DOT) nl> wrote

Quote:
On Wed, 8 Oct 2003 14:12:53 +1300, "Jeff Butler" <jeffis (AT) itagain (DOT) co.nz
wrote:

The issue arises because the header of the site needs to grow and
contract
with the content in it, so I can't give column's one two and three
absolute
positions because these change with the height of the header, I have
tried
giving each a relative position with a negative top value, which
positions
everything in the right place and the content moves up and down with the
header, but this results on a lot of extra white space at the bottom of
the
page.

If anyone has got any solution, ideas I would be indebted.

Use floats. I have a couple of example layouts on my site (see sig) that
might offer some inspiration.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.