Friday, 13 September 2013

background-color getting inherited from body element

background-color getting inherited from body element

I am trying to have two stacked elements with footer
.background
.container-fluid
.footer
Please see my fiddle:
http://jsfiddle.net/z9Unk/309/
I expect green to be shown in background with footer in the bottom.
But it shows black (background-color of body). Why is that?
If I remove background-color from body, then it shows the green background.
How can I show the green background without removing background-color from
body?

No comments:

Post a Comment