/    Sign up×
Community /Pin to ProfileBookmark

css columns?

Hi. Can someone help me with a CSS quandary?

Basically, I’ve created an opening page for my new bulletin board [url]www.everydayoutrage.com[/url] , but I am nervous about a few of the CSS elements. Specifically, I don’t know how to make the two colored columns on either side of the main text stretch so that they are always in contact with the footer. For now, I’ve set their lengths in ems so that they will stretch a little when the text is resized, but this seems to me a rather crude solution. First of all, it leaves all that empty space beneath the form on the right side, and it renders a length that’s probably not consistent across all browsers.

Can anyone suggest a solution? All I want is three columns (the outside ones with colored backgrounds) that stretch down and touch the footer and can stretch when the text is changed or increased in size. I tried wrapping all of the columns in a <div> with a background image, but I still had to put in a height to make the image visible (which kind of defeats the purpose). I suppose I could put a background image in the body tag, but then I would have to do away with the top and bottom margins and restyle my header and footer. Any other thoughts?

The CSS is located at:

[url]www.everydayoutrage.com/outrage.css/[/url]

Thanks so much!

Newt

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 19.2005 — Do a search for "faux columns" here and on the web (such as at www.alistapart.com) and you'll have one solution.
Copy linkTweet thisAlerts:
@togaenJul 20.2005 — Another way to go is to use left and right borders to create columns on either side of a DIV. What you do is set left and right border widths to whatever width you want, and then position content DIVs over those borders with transparent backgrounds so that it appears as if they are a "column". That's the method I used for this template:

[URL=http://www.togaenwebdesign.com/testsites/smartcode/]http://www.togaenwebdesign.com/testsites/smartcode/[/URL]

Then you always have three columns of exactly equal height. ?
×

Success!

Help @jnb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...