473,385 Members | 1,521 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,385 software developers and data experts.

3 column layout

JWL
Hi all

I'm attempting to create a layout based on this one:

http://www.drugs.gov.uk/error404

After wading through that site's CSS (there's a lot of it), I extracted
the essence to the following:

http://www.sarroukhs.f2s.com/test/

This seems to work fine in IE5/6/7, FF2, Opera and Seamonkey.

A few questions:

1. On the drugs.gov.uk page, the right column behaves like a table cell,
stretching to the height of the other columns. Presumably this is some
trickery with background images but does anyone know how this is done? I
mean, how can background images be used when the width of the column is
not known?

2. When I boost the font in Firefox, the text spills out of the columns.
When I boost the font in Opera, after hitting a certain size the
rightNav column falls below the content column. The font has to be
pretty big in both cases for these things to happen. Would you consider
this to be a problem with the layout or is it more like inevitable
collateral damage? What, if anything, should I do about it?

Input greatly appreciated.
Jun 16 '07 #1
2 1836
JWL wrote:
I'm attempting to create a layout based on this one:

http://www.drugs.gov.uk/error404

After wading through that site's CSS (there's a lot of it), I extracted
the essence to the following:
That seems to be the hard way.
A quick google for: CSS 3 column template
produces dozens of results, such as:

http://www.maxdesign.com.au/presentation/page_layouts/
--
-bts
-Motorcycles defy gravity; cars just suck
Jun 16 '07 #2
JWL wrote:
>
http://www.drugs.gov.uk/error404

the right column behaves like a table cell,
stretching to the height of the other columns.
how can background images be used when the width of the column is
not known?
The width of the column *is* known, it's just set in % instead of px, so
it adjusts with the window size.

This is done using wide graphics that repeat on the y-axis, and a
percentage based position. On the above page the effect for the right
column is with a 3000px wide bg image that has the gray coloring in the
rightmost 600px (20% of 3000). When you position it right 80%, only the
rightmost 20% of the container is gray.

The image is at
http://www.drugs.gov.uk/static/drugs...ightnav_bg.gif

I've used this technique before and it works well. You just have to be
thoughtful about the backgrounds and text colors you use, and make sure
that text is still readable when image loading is disabled.
2. When I boost the font in Firefox, the text spills out of the columns.
The result of using (too) narrow columns and long words. Sometimes it's
better to use em widths, sometimes % is preferable. Choose the lesser of
the evils for your particular content.

--
Berg
Jun 16 '07 #3

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

Similar topics

3
by: Doug McCrae | last post by:
http://www.btinternet.com/~doug.mccrae/go4learning/index.html As it says in the subject, a two column layout (plus header and footer boxes). I feel the left column really needs to be fixed width...
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...
3
by: Spondishy | last post by:
OK... After a previous post, I've decided that the site layout will be two columns The layout will be: 1) Page 100% wide 2) Right column will be fixed 150px, left column will use the rest...
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,...
31
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.