Home  >  Article  >  Web Front-end  >  How to tile the entire page_html/css_WEB-ITnose

How to tile the entire page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:341988browse

I did a small test but it was unsuccessful. I want the navigation bar to span the entire browser page. The picture is as follows
The red part does not reach the edge of the browser.
The css settings are as follows:

#top_01 {    background:#f7f7f7;    height: 30px; border-bottom:1px solid #eee;}#top_02{ height:100px;}#top_03{background: none repeat scroll 0% 0% 	rgb(227, 58, 61);    background-color: rgb(227, 58, 61);    background-image: none;    background-repeat: repeat;    background-attachment: scroll;    background-position: 0% 0%;    background-clip: border-box;    background-origin: padding-box;    background-size: auto auto;height: 35px;}div{margin:0;padding:0;}#head {    width: 100%;    height: auto;    margin: 0px auto;    background-repeat: repeat-x;    background-position: center 152px;}

correspond to three parts respectively. What should I add to achieve the effect? ​​


Reply to the discussion (solution)

*{	margin:0;	padding:0;}


...

body{
margin:0;padding:0;
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn