views:

49

answers:

2

Hello.

I want to make a div 100% height, so basically the full screen. This, so that the background streches over the whole page. I don't want to add the background to the body, since i want it so that if i comment out the wrapper, the page is full width. (which works by the way)

So basically my question is: how can i make the wrapper-bg div 100% high.

Hope you guys can help me.

A: 

Make the body height 100% because div width or height will apply only if the parent been set to a certain value for example if the body 100% the div height 100% will work cause the parent been determined

Amgad Fahmi
tried that, but it does not work for some weird reason.Put it back again so you can see it does not work
Luuk
check this out http://codesnippets.joyent.com/posts/show/938
Amgad Fahmi
Didn't work, got it implemented in the code now.
Luuk
A: 

Try this, should work as you have to make all parent elements 100%.

html, body {height: 100%}

.yourdiv {height: 100%}
Allan Kimmer Jensen
This does not work, this suggestion was already made.
Luuk