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.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

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