Behold the mystical code written in HTML.
<div id="sidebar1">
sidebar1
</div>
<div id="sidebar2">
sidebar2
</div>
Beneath lies the enchanting CSS code for the aforementioned HTML structure.
div {
width: 100px;
height:100px;
border-style: solid; border-width: 1px 1px 1px 1px;
}
div#sidebar1 {
float: left;
}
As it appears on my screen via the spellbinding Firefox browser, a question arises - why does 'sidebar2' refuse to be concealed by div1?
The ancient form of this HTML used to manifest itself like so:
In my humble opinion, due to the sorcery of the float left property, div2 will be enveloped entirely by div1, masking any trace of text within div2 as depicted below.
And lo and behold, when I hover over div2 in the mysterious Firebug tool, the text 'sidebar2' seems to drift away from its intended dwelling within div2. Why is this peculiar phenomenon occurring?