开发者

How do I fix my CSS issue?

开发者 https://www.devze.com 2023-03-23 17:27 出处:网络
I\'m simply trying to keep the body color from spilling inside the middle of my page (between the 2 sidebars), which I want to keep white.

I'm simply trying to keep the body color from spilling inside the middle of my page (between the 2 sidebars), which I want to keep white.

开发者_开发知识库

I'm kind of building this template from scratch and really want to do it the right way so that I can use it for other html projects as well. Could someone tell me what I'm doing wrong and what I could do better to make the css work?

Thanks!

URL here


put this style for your container:

#container { 
   margin:0 auto; 
   width:900px;  
   background:white 
}

This is because by default background value for HTML element is transparent, so everything is see-through unless you specify otherwise

0

精彩评论

暂无评论...
验证码 换一张
取 消