/ * Body style * /
Body {margin: 0px; padding: 0px; Background: URL (./ images / bg_logo.gif) #Fefefefe NO-REPEAT Right Bott_ Font-Family: 'Lucida Grande', 'Lucida Sans Unicode', 'Song Body', 'New Song Body', Arial, Verdana, Sans-Serif; Color: # 666; font-size: 12px; line-height: 150%;
Define the boundary margins of 0; background color is #fefefe, background picture is BG_LOGO.GIF, the picture is located in the lower right corner of the page, not repeated; define the font size is 12px; the font color is # 666; the row is 150%.
/ * Define page left column style * / # left {width: 200px; margin: 0px; padding: 0px; Background: #cdcdcd;
/ * Define the page in the column style * / # middle {position: absolute; Left: 200px; Top: 0px; width: 300px; margin: 0px; padding: 0px; background: #dadada;
/ * Defined page Right Column Style * / # right {position: absolute; Left: 500px; Top: 0px; width: 280px; margin: 0px; padding: 0px; Background: #fff;}
I use the column and right column DIV I have adopted Position: Absolute; and then defined Left: 200px; top: 0px; and Left: 500px; Top: 0px; this is the key to this layout, I use the definite Location. Define the middle column distance page left box 200px, the top 0px; define the left frame of the right column distance page 500px, the top 0px;
At this time, the code of the entire page is: