Do not use tags to create two column page layout

xiaoxiao2021-03-06  14

With web standards, there is a belief that it does not use the form of the formula for basic page layout.

The two-column layout of web pages, which we tend to be implemented through a 1-line table. E.g:

left bar Right section

With the float attribute of the DIV object, it can also be implemented, the page code is as follows:

left bar
right side

The matching CSS code is:

#Container {width: 760px;} #} #} #} # maincolumn {width: 550px; float: right; border: 1px solid: Right; border: 1px solid # 000;}

The above two columns layout are fixed width, I personally think that the width should be fixed.

转载请注明原文地址:https://www.9cbs.com/read-48637.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.077, SQL: 9