last shared the "Div+css Web design making page layout tips to share!" ", I believe we have some understanding of the layout of the Web page, in fact, in our DIV+CSS page layout, there will be a floating CSS layout problems." Here's how to deal with the floating problem of div+css layout under sharing.
Look at the following code fragment first:
CSS code:
#left {float:left;width:200px;}
#right {float:right;width:800px;}
page code:
<body>
<div id= "content"
<div Id= "Left" > column </div>
<div id= "Right" > right-hand column </div>
</div
</body>
This is the most common code we use for CSS writing to make the left and right layout. There are other ways to write CSS, such as the left side of the fixed width right automatic adaptation.
Fixed width right of the left side automatically adapts CSS code:
#left {float:left; width:200px;}
#right {margin-left:200px;}
above the writing of CSS is the most standard CSS writing, if the above based on the writing of the CSS code and the appearance of floating around the phenomenon, it needs to check the left and right side of the code is written norms,</div> This div end code is caused by more or less writing. We only need to pay attention to the above situation, basically can solve the div+css layout around floating problem. reprint Please specify: http://www.ommclean.com