Witam otóż ostatnio oglądałem trzeci odcinek u Pana Mirosława z HTML, i budując podobną stronę, zauważyłem że nie działa float: left; Oto kod:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>CS:GO Boosting</title>
<meta name="description" content="CS GO Boosting ! Niskie Ceny! Profesjonalność !" />
<meta name="keywords" content="CS, GO, Boosting, CS:GO, Wbijanie, Rangi, Counter-strike, Global, Offensive" />
<link rel="stylesheet" href="style.css" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Black+Ops+One&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato:700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="container">
<div class="rectangle">
<div id="logo">CS:GO BOOST</div>
<div class="obrazki"</div>
</div>
<div style="clear: both;"></div>
<div class="square">
<div class="tile1">1</div>
<div class="tile1">1</div>
<div style="clear: both;"></div>
</div>
<div class="square"></div>
<div style="clear: both;"></div>
<div class="rectangle"></div>
</div>
</body>
</html>
A tutaj CSS
body
{
background-color: #303030;
color: #ffffff;
font-family: 'Lato', sans-serif;
font-size: 18px;
}
#container
{
width: 1000px;
margin-left: auto;
margin-right: auto;
}
.rectangle
{
width: 960px;
margin: 20px;
text-align: center;
}
.square
{
width: 50%;
float: left;
}
#logo
{
background: black;
float: left;
font-family: 'Black Ops One', sans-serif;
font-size: 70px;
width: 960px;
text-align: center;
}
.tile1
{
margin: 8px;
width: 230px;
height: 142px;
background-color: #66FF66;
float: left;
}
Próbowałem poprawiać to, ale jeszcze bardziej zabłądziłem. Proszę o pomoc drodzy użytkownicy. Od niedawna próbuje posiąść tajniki html i css, więc tym bardziej o to prosze.