View Single Post
Old 10-03-2012, 02:10 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
This is the default viewport background color. The body element has a default margin or padding which you need to remove in the first place:
Code:
body {
  margin: 0;
  padding: 0;
}
And then you assigned your div a fixed width so no wonder that the default background color of the page is visible at the right if your viewport is larger than that specified width.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
tarasmuz (10-03-2012)