/    Sign up×
Community /Pin to ProfileBookmark

sidebar height

Hello,

I’m new to laying out with css and one thing seems to come up here and there. I make a container div. I then have a sidebar div floated left and a content div. The sidebar would have a colored background.. my question is, how do I make the sidebar div grow in height as content is added to the content div with out giving the sidebar div a height? or am I doing this wrong all together?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@CentauriDec 05.2007 — In terms of the site [B]content[/B], having a container higher than the content within doesn't make much sense. Whilst [B]visually[/B] it may look good, in practical terms not easy to do. The easiest way is to provide a repeating background on the containing element to make it [B][I]look[/I][/B] like all columns go full height - the faux columns method.
Copy linkTweet thisAlerts:
@MrMJSauthorDec 06.2007 — ohh.. well isn't that simple ? thank you for your help
×

Success!

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

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

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