Witam, jestem w trakcie pisania swojej strony, na ten moment robię layout lecz napotkałem problem z którym walczę od wczoraj i nie potrafię sobie z nim poradzić, załącze pliki index.php oraz style.css w których ten błąd wystąpił, bardzo proszę o pomoc :) Mianowicie kafelki układają się w nie taki sposób jaki planowałem.
Tutaj zamieszczam jaki był plan a co mi wyszło:
http://imgur.com/a/KwTJq
Tutaj zawartość moich plików-
HTML:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Visca el Barca</title>
<meta name="description" content="Sklep internetowy - Cule" />
<meta name="keywords" content="kup,sprzedaj,sklep internetowy,online shop,shop,online,shop center,sklep,internet,gry" />
<link rel="stylesheet" href="css/style.css" type"text/css" />
<link href='http://fonts.googleapis.com/css?family=Lato|Josefin+Sans&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="caly_blok">
<div id="naglowek">
<div id="logo">Visca el Barca</div>
<div id="zegar">12:00:00</div>
<div style="clear: both;"></div>
</div>
<div id="lewy">
<a href="oferta-tworzenie" class="tilelinkhtml5">
<div class="tile1">
<i class="icon-laptop"></i><br />Test1
</div>
</a>
<a href="oferta-tworzenie-stron-www" class="tilelinkhtml5">
<div class="tile1">
<i class="icon-laptop"></i><br />Test2
</div>
</a>
<a href="oferta-tworzenie-stron-www" class="tilelinkhtml5">
<div class="tile1">
<i class="icon-laptop"></i><br />Test3
</div>
</a>
<div style="clear:both;"></div>
</div>
<div id="srodek">
<a href="kim-jestem" class="tilelinkhtml5">
<div class="tile2">
<i class="icon-user"></i><br />Kim jestem?
</div>
</a>
<div style="clear:both;"></div>
</div>
<div id="prawy">
<a href="oferta-tworzenie-stron-www" class="tilelinkhtml5">
<div class="tile3">
<i class="icon-laptop"></i><br />Test4
</div>
</a>
<a href="oferta-tworzenie-stron-www" class="tilelinkhtml5">
<div class="tile3">
<i class="icon-laptop"></i><br />Test5
</div>
</a>
<a href="oferta-tworzenie-stron-www" class="tilelinkhtml5">
<div class="tile4">
<i class="icon-laptop"></i><br />Test6
</div>
</a>
<div style="clear:both;"></div>
</div>
<div id="naglowek">2017 Visca el Barca © Wszystkie prawa zastrzeżone!</div>
</div>
</body>
</html>
CSS:
body
{
background-color:#303030;
color: #ffffff;
font-family: 'Lato', sans-serif;
font-size: 20px;
}
#caly_blok
{
width: 1000px;
margin-left: auto;
margin-right: auto;
text-align:center;
}
#naglowek
{
width: 960px;
margin: 20px;
text-align: center;
}
#lewy
{
width:150px;
float: left;
}
#srodek
{
width:540px;
text-align:center;
float: center;
}
#prawy
{
width:150px;
float: right;
}
#stopka
{
width:960px;
margin:20px;
text-align:center;
}
#logo
{
float: left;
font-family: 'Josefin Sans', sans-serif;
font-size: 70px;
width: 600px;
text-align: left;
}
#zegar
{
float: right;
font-family: 'Josefin Sans', sans-serif;
font-size: 70px;
text-align: center;;
}
.tile1
{
margin: 10px;
width: 150px;
height: 80px;
background-color: #3095d3;
float: left;
text-align: center;
}
.tile2
{
margin: 10px;
width: 540px;
height: 500px;
background-color: #666666;
float: left;
text-align: center;
}
.tile3
{
margin: 10px;
width: 150px;
height: 80px;
background-color: #3095d3;
float: left;
text-align: center;
}