473,464 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Two column layout - a bit special

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?

May 31 '06 #1
4 1349
Veerle wrote:
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
May 31 '06 #2
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?

May 31 '06 #3
Veerle wrote:
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
Jun 1 '06 #4
Gus Richter wrote:

Perhaps this will help you:

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


Very interesting site, thanks.

CM

--
== Not nuts, just a little eccentric ==
http://www.africanbush.co.za
African Bush Tours and Safaris
Jun 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Zak McGregor | last post by:
Hi all I have a simple 3 column css layout here: http://www.carfolio.com/newlook.dhtml However, when the centre column is wider than the screen (yes, it does happen on some pages on the site...
16
by: Dan V. | last post by:
How do you do a css 2 column layout with header and footer, with the 2nd column auto-stretching so entire page looks good for 800 x 600 resolution as min. and 1024 x 768 resolution as a max? ...
10
by: Ed | last post by:
The page I'm working on is at http://www.coldpizzasoftware.com/temp/layout.html I trying to get the yellow sidebar to go in the white area to the right of the green content area and between the...
15
by: Tamblyne | last post by:
This problem has got to have a simple solution and I can't be the first person who has ever handled it. Perhaps Google is no help because I'm not using the right terms? (I did find one post...
7
by: Andrew | last post by:
I've been struggling to achieve the following layout for some time now and I'm not getting anywhere. I've tried several approaches including floats & absolute positioning and none seem to work,...
16
by: Jef Driesen | last post by:
I have created a nice idea for a website and now I would like to translate that idea in (x)html and css. The layout is quite basic: a header, two columns and a footer. For a graphical presentation,...
5
by: Roger | last post by:
I am trying to do a 'simple' task in a DGV control. The problem is this. I have an unbound DGV with all 'AllowUser' options disabled. RowHeader.Visible=False ColumnHeader.Text is labelled as...
3
by: hzgt9b | last post by:
I want a page with a centered div containing two rows. Top row has an image and some text. The bottom row needs to have three columns. I'd love to have the 1st column set to a fixed width then have...
1
Death Slaught
by: Death Slaught | last post by:
I will be showing you how to make a very simple but effective three column layout. First we will begin with the HTML, or structure, of our three column layout. <!DOCTYPE html PUBLIC...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.