/    Sign up×
Community /Pin to ProfileBookmark

Full Length Div

How can I make a div extend the height of the page? I tried the obvious “height: 100%” and got absolutely no result.

Site: [url]http://noobcakes.com/[/url]
CSS: [url]http://noobcakes.com/index.css[/url]

I want the #wrap div (everything centered on page) to extend to the bottom of the window, or beyond if the page is longer than one screen-full. I also want the sidebar to extend to the top of the page or the bottom of the header (whichever is possible ?) and to the bottom of the page.

Thanks. I love this CSS stuff. It makes changing >1 page so much easier!

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jul 05.2007 — You have to tell it what that's a % of.

html, body { height:100% }
×

Success!

Help @bluestars 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.6,
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,
)...