css div 100% height problem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ilya Kraft
    New Member
    • Jan 2011
    • 134

    css div 100% height problem.

    Hello,

    I have this problem: have my div with wrapper id, want it to expand width, height 100%, but for some reason it is not expanding in height. it contains image that i want to use as a top background in this site

    http://idaderko.netai. net

    now it has blue background, wrapper div contains another image that goes on the top, but i need wrapper to be on 100& height

    here is css code for that div:

    Code:
    #wrapper {
    	background-image: url(images/bg-top.jpg);
    	background-repeat: repeat-x;
    	min-height: 100%;
    }
  • Samishii23
    New Member
    • Sep 2009
    • 246

    #2
    Well the thing is is that object width, is that if its a 100%, it'll be as big as the parent container. Whether thats the Window, or another element. Your probably better doing a normal image tag and style the <img> tag inside.

    my 2cents

    Comment

    Working...