<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8"/>
<meta name="description" content="Strona sklepu"/>
<meta name="keywords" content="materiały,budowlane"/>
<meta http-equiv="X-UA-Compatible" content="IE-edge,chrome=1"/>
<title> Strona sklepu </title>
<link rel="stylesheet" href="style.css" type="text/css"/>
</head>
<body>
<div id="prostokat">
<div class="tile1">
asd
</div>
<div class="tile1">
asd
</div>
<div class="tile1">
asd
</div>
<div class="tile1">
asd
</div>
</div>
<div id="prostokat2">
<div style="clear:both;"> </div>
<div class="tile2">
asdasd
</div>
<div class="tile2">
asdasd
</div>
<div class="tile2">
asdasd
</div>
</div>
<div id="content">
asdas
</div>
</body>
</html>
body
{
background-color: grey;
}
#prostokat
{
width:1000px;
height:150px;
background-color:black;
margin-left: auto;
margin-right: auto;
}
.tile1
{
width:230px;
height:70px;
background-color: white;
float:left;
text-align: center;
padding-top:60px;
margin: 10px;
}
#prostokat2
{
width: 200px;
height:600px;
background-color: black;
margin-left:167px;
margin-top:10px;
}
.tile2
{
width:190px;
height:190px;
text-align: center;
background-color: pink;
margin:10px;
}
#content
{
width: 30px;
height: 30px;
background-color: green;
float:left;
}
Czy ktoś wie czemu div o ID="content" nie chce wejść obok diva prostokat2? Wiem, że to podstawy, że problem jest błahy, ale nie mogę go rozgryźć. + jakieś rady co robię źle albo co powinienem zrobić lepiej :D? Z góry dziękuję!