473,378 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Two column liquid fixed right, equal length columns, with footer

I hope someone can help, before I start thinking tables have a lot of
merit after all.

I am trying to achieve a two column layout, with source code div order
main content, right side navigation, footer. Naturally I want liquid
main contents, and I have float: right; img, and clear: both; paragraphs
in the main contents div.

Fixed width right navigation column is probably essential. There is a
confounded logo graphic to go at the top right of the viewpoint, and I
need to match the colour the whole way down the right hand column.

But I also need a full width but limited height footer directly below
the longest column (either column may be longer). So the background
colour continues after the footer.

So far I've totally failed to get close. If I use a background image on
body with repeat-y it makes the nav column look as if it continues the
whole way down, but the image continues past the footer (not wanted).

If I position the right side navigation where I need it using position:
absolute; the clear: both; footer doesn't clear it (nav out of flow, I
guess).

However if I float the navigation right, it gets stuck directly below
the main contents. I'm obviously missing something fundamental.
especially as to why I can't persuade float right to work.

Apart from Googling, I have checked most of the layouts pointed to by
http://css-discuss.incutio.com/?page=TwoColumnLayouts and a chunk of
http://css-discuss.incutio.com/?page=ThreeColumnLayouts Tried so many
experiments I am not even sure where I started.

Does anyone have a favourite tutorial they think addresses my problem?
Thanks.

--
http://www.ericlindsay.com
Dec 23 '06 #1
2 6033
In article
<NO***********************************@freenews.ii net.net.au>,
Eric Lindsay <NO*************@ericlindsay.comwrote:
However if I float the navigation right, it gets stuck directly below
the main contents. I'm obviously missing something fundamental.
especially as to why I can't persuade float right to work.
You best provide a url of your attempts so far for something to
go on. But if this helps:

You are floating right and specifying a width? Are you ensuring
you give the content div a right margin of at least that
particular width (for the float to "sit in")? Where are you
putting the floated div html? Before or after the content one...
remember that a float acts as an inline object, like a word and
it is important what it is inline with. Put up your attempt and
we can take a look and suggest a reordering or a container to
hold things together (in case there is unwanted float drop)

--
dorayme
Dec 23 '06 #2
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
In article
<NO***********************************@freenews.ii net.net.au>,
Eric Lindsay <NO*************@ericlindsay.comwrote:
However if I float the navigation right, it gets stuck directly below
the main contents. I'm obviously missing something fundamental.
especially as to why I can't persuade float right to work.

You best provide a url of your attempts so far for something to
go on. But if this helps:
You are floating right and specifying a width?
Yes, 200px to match the logo illustration
Are you ensuring
you give the content div a right margin of at least that
particular width (for the float to "sit in")?
Yes, I had used 250px. However I had been swapping between large margins
and float left all day, so things were getting messy, and I am tired
enough now not to recall exactly what I tried. Since I only really seem
to do CSS when Xmas approaches, I don't have the best memory for what I
tried in previous years on web sites.
Where are you
putting the floated div html? Before or after the content one...
remember that a float acts as an inline object, like a word and
it is important what it is inline with.
Floated right div is after the content div. Normally I don't have a
logo, so my H1 was prior to the main content. I think having that affect
the float was annoying me, so I pulled the h1 inside the main content.
Put up your attempt and
we can take a look and suggest a reordering or a container to
hold things together (in case there is unwanted float drop)
I think I'll get some sleep, and in the morning make a few changes and
put up a few test cases as you suggest. I have some antique pages from
years ago that should be a (mostly) functional equivalent, so I should
be able to figure out what I did then that I can't see now. The course
of least harm seems to be to let a background gif on the body do a
repeat-y the whole way down the viewpoint, and then figure how to knock
it out at the bottom of the page. Thanks.

--
http://www.ericlindsay.com
Dec 23 '06 #3

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

Similar topics

4
by: Stian Lund | last post by:
Hi, I'm trying to create a 2 column layout with a footer on the bottom, where the (fixed-width) sidebar follows the content in the code, while showing on the left hand side of the content. The...
1
by: miqbal | last post by:
How can I loop through the columns collection in client side javascript? Or how can I get a column by the key, not just by the index in the collection? in Infragistics webgrid Thanks
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,...
10
by: Günther Steinmetz | last post by:
I am trying to build a page with a header, 2 columns in the middle and a footer. The left column contains the menu, the right column the real content. Instead of giving the content column a left...
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,...
2
by: Edward | last post by:
I'm pursuing the holy grail of creating a two-column CSS layout with footer AND where the colors of the columns actually go all the way down. The code is below. Here is a graphic of how it...
27
by: FuzzyLogik | last post by:
http://phazm.net/csstest/index2.html I'm trying to make the thumbnails fit to the width of the page, so there are 3-4 in each row, but when you resize, I want it to basically flow with the page,...
7
TheServant
by: TheServant | last post by:
Hey guys, I am trying to get my page to be 3 columns, with a liquid center one. The CSS concerned is: div.container { width: 100%; margin: 0 auto; border: 0px; } div.center_content {
3
by: Noorain | last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.