HighDots Forums  

Two column layout - a bit special

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


Discuss Two column layout - a bit special in the Cascading Style Sheets forum.



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

Default Two column layout - a bit special - 05-31-2006 , 06:49 AM






Hi,

I'm working on a new layout for my website. Each page consists of two
parts:
- a menu (left part of the page)
- the content (the remaining part at the right)

So I created two divs, set them both to float left and gave the
menu-div a fixed with.
This looks like this: http://users.skynet.be/louke/test.html
But this isn't what I want, the body part (green block) has to take up
all the remaining right part of the page. So there shouldn't be any
white visible any more.

I have been searching on google and came across a lot of pages
explaining how to do a two column layout for a page. But all of these
(the ones I've read anyway, and I've read a lot of them) achieve this
by putting a long text in the right div, so that it automaticaly
streches over the remaining part of the page.

I want the content-div to take up all the rest of the page, no matter
what is in it, so even when there is nothing in it, or just the word
"content".
Any ideas?


Reply With Quote
  #2  
Old   
Gus Richter
 
Posts: n/a

Default Re: Two column layout - a bit special - 05-31-2006 , 09:37 AM






Veerle wrote:
Quote:
Hi,

what I want, the body part (green block) has to take up
all the remaining right part of the page. So there shouldn't be any
white visible any more.

I want the content-div to take up all the rest of the page, no matter
what is in it, so even when there is nothing in it, or just the word
"content".
Just drop the float declaration in #content.

--
Gus


Reply With Quote
  #3  
Old   
Veerle
 
Posts: n/a

Default Re: Two column layout - a bit special - 05-31-2006 , 11:31 AM



Gus Richter wrote:

Quote:
Just drop the float declaration in #content.
Thanks a lot! Doing that, the right block now takes up all the
remaining space on the right.

But in internet explorer, there is a small gap between the two blocks:
http://users.skynet.be/louke/test_a.html.
I did set the margin and padding of the body and the two div blocks to
0px, but that doesn't seem to help at all? In firefox, there is no gap,
so there it is shown correct.

I could work around the gap by setting the body background color to the
same color as the background color of one of the div blocks, but
perhaps there is a better way to solve this?



Reply With Quote
  #4  
Old   
Gus Richter
 
Posts: n/a

Default Re: Two column layout - a bit special - 06-01-2006 , 09:54 AM



Veerle wrote:
Quote:
Gus Richter wrote:

Just drop the float declaration in #content.

Thanks a lot! Doing that, the right block now takes up all the
remaining space on the right.

But in internet explorer, there is a small gap between the two blocks:
http://users.skynet.be/louke/test_a.html.
I did set the margin and padding of the body and the two div blocks to
0px, but that doesn't seem to help at all? In firefox, there is no gap,
so there it is shown correct.

I could work around the gap by setting the body background color to the
same color as the background color of one of the div blocks, but
perhaps there is a better way to solve this?
Perhaps this will help you:

<http://www.positioniseverything.net/explorer/threepxtest.html>

--
Gus


Reply With Quote
  #5  
Old   
pecan
 
Posts: n/a

Default Re: Two column layout - a bit special - 06-10-2006 , 04:47 AM



Gus Richter wrote:

Quote:
Perhaps this will help you:

http://www.positioniseverything.net/...reepxtest.html

Very interesting site, thanks.

CM

--
== Not nuts, just a little eccentric ==
http://www.africanbush.co.za
African Bush Tours and Safaris


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.