Log in

View Full Version : what CSS I need ?



The_Alligator
12-11-2009, 11:22 AM
<html lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">

#apDiv2 {
width:300px
height:200px;
background-color: #F00;
border: 1px solid #000;

}
#apDiv3 {
width:300px
height:200px;
border: 1px solid #000;
background-color: #9CF;


}

</style>
</head>

<body>
<div id="apDiv2">
<p>hggjk</p>
<p>&nbsp;</p>
</div>
<div id="apDiv3">
<p>hgjhgf</p>
<p>&nbsp;</p>
</div>
</body>
</html>

I would like to put the two div's next to each other . what CSS I need ?

jscheuer1
12-11-2009, 12:35 PM
#apDiv2 {
width:300px
height:200px;
background-color: #F00;
border: 1px solid #000;
float: left;
}
#apDiv3 {
width:300px
height:200px;
border: 1px solid #000;
background-color: #9CF;
float: left;
}