March 24, 2012

Setting Height to 100% Not Working and Unknown CSS Change

Question by user1249318

I’m working on http://pizzli.com/darrenwp/?p=107. When I try and set the post background height to 100% to extend the background to the entire length of the post, it doesn’t work, however changing the number of pixels does. One other problem is the HTML> seemed to set a Margin-Top: 28px !important and I’m not sure where this is coming from. Any help would be appreciated.

Answer by sandeep

If there is a float in an element so you have to clear his parent. write now inside #postbg the child have float on it so we have to clear it. Write like this:

#postbg {
    overflow: hidden;
}

Answer by Starx

margin-Top: 28px !important 

Is for the workpress bar on the top of the page. Its not the problem.

...

Please fill the form - I will response as fast as I can!