1: Style marked with!important
2:html Editing styles
3: User-set style
4: Browser Default Style
A column of adaptive, the other column fixed width, personally think the following method is more useful
<! DOCTYPE html>
CSS styles are as follows:
*{margin:0;padding:0;} #header, #footer {background-color: #E8E8E8;} #container {margin:10px 0;overflow:hidden;}. mainbox{ Margin-right:200px;background-color:lightblue;}. sidebox{ float:right;background-color:lightcoral;width:200px;}
Note the little tricks that float the fixed-width column, noting that it cannot have elements that block it from floating to the top, as the example code would put. Sidebox in front of. Mainbox. If the order of exchange can not float to the top of the block. Mainbox reserved 200px white space.
CSS Basics points Subtotal 1-selector weight priority and one column adaptive in two-column layout, and another column fixed width