Witam, jestem w trakcie kursu pana Mirosława (kurs HTML odc. 3) i przy wstawianiu 5 tile'a nie ustawia mi się on przy prawej stronie tylko po lewej, chociaż diva wstawiłem do drugiego diva "square". Nie wiem czy to problem w mojej rodzielczości monitora czy też błąd w kodzie. Pozdrawiam
Kod CSS:
body
{
background-color: #303030;
color: #ffffff;
font-family: 'Raleway', sans-serif;
font-size: 20px;
}
#container
{
widht: 1000px;
margin-left: auto;
margin-right:auto;
}
.rectangle
{
widht: 960px;
margin: 20px;
}
#logo
{
float: left;
font-size: 70px;
margin-left:100px;
margin-right: 100px;
}
.square
{
widht: 50%;
float: left;
}
#zegar
{
margin-right: 100px;
float: right;
font-size: 70px;
margin-left: 100px;
}
.tile1
{
margin: 10px;
width: 230px;
height: 142px;
background-color: #3095d3;
float: left;
margin-top: 50px;
}
.tile2
{
margin: 10px;
width: 230px;
height: 142px;
background-color: #666666;
float: left;
}
.tile3
{
margin: 10px;
width: 230px;
height: 142px;
background-color: #93c748;
float: left;
}
.tile4
{
margin: 10px;
width: 480px;
height: 142px;
background-color: #ee5a32;
}
.tile5
{
margin: 10px;
width: 480px;
height: 304px;
background-color: #666666;
}
Kod HTML:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8"/>
<title>Strona jana Kowalskiego</title>
<meta name="description" content="Witaj na stronie programisty Jana Kowalskiego. Tutaj poznasz wszystkie tajniki programowanie i zdobędziesz całą potrzebną wiedzę!" />
<meta name="keywords" content="programowanie, komputery, technologia, tech, HTML, CSS, JS, 5, 6, 3, programista" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="style.css" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
</head>
<body>
<div id="container">
<div class="rectangle"></div>
<div id="logo">Jan Kowalski</div>
<div id="zegar">12:00:00</div>
<div style="clear: both;"></div>
<div class="square"></div>
<div class="tile1"></div>
<div class="tile1"></div>
<div style="clear:both;"></div>
<div class="tile2"></div>
<div class="tile3"></div>
<div style="clear:both;"></div>
<div class="tile4"></div>
<div class="square"></div>
<div class="tile5"></div>
<div class="rectangle"></div>
</div>
</body>
</html>