Skip to content Skip to sidebar Skip to footer

Can't Get A Div Background Colour To Fill Full Width Of Viewport

I'm trying to fill a certain part of the page with a background color. I want the background colour to fill the entire width of the viewport, but have a fixed height. Here's what I

Solution 1:

Try to set width of body and html to 100% and paddings and margins to 0.

Also you may want to apply CSS reset rules to the beginning of your style sheet. You can use this CSS reset http://meyerweb.com/eric/tools/css/reset/ or google for another one.


Post a Comment for "Can't Get A Div Background Colour To Fill Full Width Of Viewport"