I just downloaded notepad++ so I just want to review and hand code a page and then keep working on it.
should be super simple. but one of my div, floated right and w/in its own content box is not floating right & top.
Could someone please look at my code & tell me what I am doing wrong please?
here is the html
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" style="text/css" href="file1CSS.css">
</head>
<body>
<div id="wrapper">
<div id="nav"> </div> <!--nav-->
<div id="contentBox">
<div id="text1">
<p class="pr1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed augue nibh, bibendum in euismod vel, auctor quis lectus. Aliquam vitae urna sem, et imperdiet erat. Integer sem elit, gravida at posuere a, pellentesque id tortor. iverra enim. Sed fermentum faucibus massa, at tincidunt sapien tincidunt quis.
</p>
</div> <!--text1-->
<div id="text2">
<p class="pr1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed augue nibh, bibendum in euismod vel, auctor quis lectus. Aliquam vitae urna sem, et imperdiet erat.
</p>
</div> <!--text2-->
<div id="text3">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed augue nibh, bibendum in euismod vel, auctor quis lectus. Aliquam vitae urna sem, et imperdiet erat. Integer sem elit, gravida at posuere a, pellentesque id tortor. Nullam non velit ut lacus hendrerit facilisis id eget neque. Nunc tempus semper enim, pellentesque rutrum velit placerat et. Integer luctus euismod nibh, nec ultrices metus varius et. Vivamus risus ipsum, dapibus vitae placerat a, varius non tellus. Vestibulum porta venenatis lacus, at
</p>
</div> <!--text3-->
<div id="clear"> </div> <!--clear-->
</div> <!--contentBox-->
<div id="clear"> </div> <!--clear-->
<div id="footer">footer content whatever @ 2012</div>
</div> <!--wrapper-->
</body>
</html>
and here is the css
body{
background-color:#338585;
}
#wrapper{
background-color:#4D9494;
margin: 0px auto;
height: 900;
width:900;
border: solid 3px #001F1F;
}
#clear {
clear:both;
}
#nav{
color:#fff;
background-color:#003333;
margin: 0 auto;
height: 50px;
width:900;
border: solid 3px #001F1F;
}
#contentBox{
width:750px;
margin: 10px auto;
padding:5px 5px;
background-color:#339933;
border: solid 3px #001F1F;
}
.pr1{
margin:0px 5px;
color: #333300;
}
#text1{
padding: 10px 20px;
margin: 10px 0px;
float: left;
background-color:#99C2C2;
height: auto;
width:500px;
border: solid 2px #001F1F;
}
#text2{
padding: 10px 20px;
float: left;
background-color:#99C2C2;
height: auto;
width:500px;
border: solid 2px #001F1F;
}
#text3{
padding: 10px 20px;
float: right;
background-color:#99C2C2;
height: auto;
width:150px;
border: solid 3px #001F1F;
}
#footer{
color:#fff;
background-color:#003333;
margin: 0 auto;
height: 50px;
width:900;
border: solid 3px #001F1F;
}
thank you