Witam! Mam kolejny problem tym razem z float: left; zdaję sobie sprawe, że było wiele takich tematów, ale one mi nie pomogły. Po prostu divy zamiast byc obok siebie są pod sobą.
<!doctype HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<title>SkirFace!</title>
<meta name="description" content="SkirFace - Dowiedz się co słychać u Skirima!"/>
<meta name="keywords" content="Portal, społeczność, Youtube, Skirim, Face, Twarz, SkirFace" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="author" content="Skirim Play/Mateusz Bogumił"/>
<link rel="stylesheet" href="style.css" type="text/css"/>
<link href='https://fonts.googleapis.com/css?family=Lato:400,100|Josefin+Sans:400,100&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="container">
<div class="rectangle">
<div id="logo">Skirim Play</div>
<div id="zegar">12:00:00</div>
<div style="clear: both;"></div>
</div>
<div class="square">
</div>
<div class="square">
<div style="clear: both">
</div>
<div class="rectangle">
</div>
</div>
</div>
</body>
</html>
body
{
background-color: #303030;
color: #ffffff;
font-family: 'Lato', sans-serif;
font-size: 20px;
}
#container
{
width: 1000px;
margin-left: auto;
margin-right: auto;
}
.rectangle
{
width: 960px;
margin: 20px;
}
.square
{
width: 50%;
float: left;
}
#logo
{
float: left;
font-family: 'Josefin Sans', sans-serif;
font-size: 70px;
width: 600px;
}
#zegar
{
float: left;
font-family: 'Josefin Sans', sans-serif;
font-size: 70px;
}