/    Sign up×
Community /Pin to ProfileBookmark

CSS 2 column layout – consistent height

I made a basic 2 column layout for a page:

[CODE]
<body style=”background-color:#c0c;”>
<div style=”float:left; width:250px; background-color:#ccc;”>
I made a basic 2 column layout for a page:<br>
I made a basic 2 column layout for a page:<br>
I made a basic 2 column layout for a page:<br>
I made a basic 2 column layout for a page:<br>
I made a basic 2 column layout for a page:<br>
I made a basic 2 column layout for a page:<br>
I made a basic 2 column layout for a page:<br>
</div>
<div style=”margin-left:250px; background-color:#ff0;”>
I want both columns to be the same height, even if the height of the content is different.
</div>
</body>
[/CODE]

Is there a way I can make the height of the shorter column equal to the longer one? I want to use this kind of layout on all my pages, but sometimes the right column is taller and sometimes the left column is taller.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 28.2004 — [URL=http://www.alistapart.com/articles/fauxcolumns/]Faux columns[/URL]
Copy linkTweet thisAlerts:
@heavenly_blueauthorOct 28.2004 — alright! this is exactly what i needed. thanks.
×

Success!

Help @heavenly_blue 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 6.18,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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