I thought that each "simple" DIV started with a new line. Please explain why the second DIV in the example positions itself after ("to the right of...") the first DIV if I include a "float:left" as the CSS for the left DIV. IOW, I don't understand why the second DIV is affected by the positioning of the first DIV.
TIA
Example Page:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<style>
#colA {
float: left;
}
</style>
</head>
<body>
<div id="colA">This is the first column</div>
<div id="colB">This is the second column</div>
</body>
</html>






Where I am going with this is setting up a header/footer 3-col page layout and find it confusing. I added a "float:left" to my "ColB" and it positions after ColA and added the borders so I could see what was going on. ColB posioned itself horizontally after ColA. So, then "float's" position themselves after one another? IOW, the ColB "float:left" doesn't float to the left of the page, but the float starts after the previous element, right?


Bookmarks