/    Sign up×
Community /Pin to ProfileBookmark

side by side divs and coupled height

I have a layout where Ive got two side by side divs both with borders and variable content. At times they might be the same height, but most of the time they will be different heights. However I need both divs to grow together and have the same minimum height. Below is the general code that I have running these divs. Right now they grow independently – opposite of what I need. If anyone has suggestions or pointers, great!

[SIZE=1]
#generalContainer{height:100%;}
#generalContainer #gb_music{float:left;position:relative;border:1px solid #ccc;width:363px;margin-right:10px;margin-top:5px;height:100%;}
#generalContainer #gb_music .header {background:#ccc;padding:2px;color:#000;border-bottom:1px solid #ccc;font-weight:bold;}
#generalContainer #gb_music .content {background:#fff;margin:0;padding:5px;}
#generalContainer #gb_music .content h1 {font-size:14px;margin:0;padding:0;}
#generalContainer #gb_music .gb_photo {float:left;position:relative;margin:5px 10px 0 0;}
#gb_web{float:left;position:relative;border:1px solid #ccc;width:363px;margin-top:5px;height:100%;}
#generalContainer #gb_web .header {background:#ccc;padding:2px;color:#000;border-bottom:1px solid #ccc;font-weight:bold;}
#generalContainer #gb_web .content {background:#fff;margin:0;padding:5px;}
[/SIZE]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@Ben_RogersNov 22.2004 — A variation of [url=http://www.alistapart.com/articles/fauxcolumns/]Faux Columns[/url] may work for you...
×

Success!

Help @bionicle 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 5.17,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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