i floated box1 to the left
i expected box2 to sit on top of box1
-and it does, because i can see the margins-
But the weird thing, is that the text inside box2 does not appear inside box2
The text which should be inside of box2 -as per the html-
shows inside box3 (overlaying the box3 text)
using firefox 3.0
can anybody try the code below??
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<style>
*
{
margin:0;
padding:0;
}
#box0
{
width: 150px;
height: 100px;
border: 1px solid purple;
}
#containElement
{
width: 700px;
background-color: yellow;
border: 1px solid black;
}
#box1
{
width: 150px;
height: 100px;
border: 1px solid red;
color: red;
float: left;
}
#box2
{
width: 150px;
height: 100px;
border: 2px solid lime;
color: purple;
}
#box3
{
width: 150px;
height: 100px;
border: 1px solid blue;
color: blue;
}
.box
{
margin: 10px;
}
.clear
{
clear: both;
}
</style>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF" BACKGROUND="?">
</BODY>
<div id="box0" class="box">
</div>
<div id="containElement">
<div id="box1" class="box">
Box1
</div>
<div id="box2" class="box">
<p> Box2 yes i am inside box2, no doubt about it </p>
</div>
<div id="box3" class="box">
Box3</ br>
original 100x100</ br>
no pad
</div>
<div class="clear">
</div>
</div>
<p>
ipsum lorem abra cadabra pata de cabra ipsum lorem abra cadabra pata de cabra ipsum lorem abra cadabra pata de cabra
</p>
</HTML>