I'm struggling to get my background image to fill 100% of the width and only 60% of the height. I've tried using "vw
" and "vh
" for setting the size, but it's still not displaying properly. I even experimented with setting it as a block element and adding content to try to make it show up, but no luck so far.
Any suggestions?
background-image: url("http://demo.zedtheme.com/prototype/boxed/images/example/parallax/home.jpg");
background-position: 50% -60px;
width: 100%;
height: 60%;
Check out my JSFiddle for reference - http://jsfiddle.net/7S7L2/