If you could please take some time to explain the following I would be grateful.
The bottom line is that I assumed the parser would create a line break after each "item" div. However, I get something like this:zmzf3c.jpgCode:<div class="item"> <img src="item1.jpg" alt="Information" style="float:left"/> <p> text</p> </div> <div class="item"> <img src="item1.jpg" alt="Information" style="float:left"/> <p> text</p> </div> <div class="item"> <img src="item1.jpg" alt="Information" style="float:left"/> <p> text</p> </div>
Does a float get cleared outside of it's parent? I'm assuming so.
Also. There is a white space between my header div and body div. However this white space is not present in IE, only firefox. I recall this being a common problem but can anyone give me the final word?
Lastly. I assumed that if I had a floated div, the next sibling div's width would be computed to fit the remaining parent width, however I find in firebug that it actually has it's full width computed and it is simply "overlapped" by the floated div. Is this correct?
Many many regards!
Alex Pineda


Reply With Quote
Bookmarks