Here is the markup and CSS:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" >
</script>
<style type="text/css">
body {
background:black;
}
div {
border:1px solid white;
margin:2px;
}
#container {
width:1000px;
margin:0 auto;
border:1px solid white;
}
#box1 {
width:330px;
height:200px;
border:1px solid red;
float:left;
}
#box2 {
width:330px;
height:200px;
border:1px solid yellow;
}
#box3 {
width:330px;
height:200px;
border:1px solid green;
}
</style>
</head>
<body>
<div id="container" >
<div id="box1">
</div>
<div id="box2">
</div>
<div id="box3">
</div>
</div>
</body>
</html>
--------------------------------------
Applying the float to box 1 causes box2 to go underneath and be hidden by box1, I have done floats before successfully and can not figure this out. I am sure this will be a snap for you experts out there. Please help...
JS


Reply With Quote
Bookmarks