473,770 Members | 4,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6061
In article
<NO************ *************** ********@freene ws.iinet.net.au >,
Eric Lindsay <NO************ *@ericlindsay.c omwrote:
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.co m.au>,
dorayme <do************ @optusnet.com.a uwrote:
In article
<NO************ *************** ********@freene ws.iinet.net.au >,
Eric Lindsay <NO************ *@ericlindsay.c omwrote:
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
3108
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 footer must stay at the bottom regardless of which column is the longest, so absolute positioning is out, I need to use floats with the clear: both; - property on the footer. Doing this with the sidebar *before* the content in the code I know how
1
6076
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
2619
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, primarily due to the footer not being aware of the columns due to me floating / positioning them. I have the following (very simple) markup: <div id="head">...</div> <div id="left">...</div>
10
1700
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 margin with the width of the menu, i am giving the content column a border with the width of the menu. (This makes life easier for me in the case that the menu column is higher than the content column). This solution works fine in all browsers i...
16
3040
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, see http://users.telenet.be/sacn/tmp/layout.png. I would like to have: * source ordered columns: header, content, sidebar, footer * fixed width columns (either px or em units). Because I don't like reading very long lines and IE does not...
2
2065
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 looks in each IE and FIREFOX: http://www.tanguay.info/web/examples/twoColumnWithFooterFirefoxIeProblem.png Does anyone have any idea what I might try to get both IE and FIREFOX
27
2850
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, and I'm having a bit of a hard time figuring that out. I want the code to remain logical: <ul>
7
1432
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
5522
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 information to show as displace. please help me. my coding are as below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>...
0
9602
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9439
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6690
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
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 we have to send another system
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.