Home  >  Article  >  Web Front-end  >  Commonly used DIV CSS basic framework structure, but it is not recommended to put them all in a div_Experience exchange

Commonly used DIV CSS basic framework structure, but it is not recommended to put them all in a div_Experience exchange

WBOY
WBOYOriginal
2016-05-16 12:07:281510browse

The basic framework structure of DIV CSS is commonly used, but it is not recommended to put it in a div
css style code:
Program code

Copy code The code is as follows:

/*---Global style---*/
* { margin:0px; padding:0px;}
body {font- family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;background:#fff;}

/*---Main style---*/
#container {} .clearfloat {clear:both;height:0;font-size: 1px;line-height: 0px;}

/*---Top style---*/
#header { }

/*---Middle style---*/
#mainContent {}
#sidebar {}
#content{}

/*-- Bottom style ---*/
#footer {}

html code
Copy code The code is as follows:








Main content






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