Witam , może to już zmęczenie ale nie wiem za cholere czemu pomarańczowa kafelka o numerze 4 przesuwa się ładnie z prawej i lewej strony o 10px stosując komende margin:10px; ale nie odsuwam sie o 10px od kafelek powyżej!!
HTML
<!DOCTYPE HTML>
<html lang="pl"/>
<head>
<title>Jan Kowalski-Portfolio</title>
<meta charset="utf-8"/>
<meta name="description" content="Stworzę dla Ciebie wyjątkową stronę www! Zatrudnij programistę webowego: PHP,JavaScript,HTML,CSS,MySQL.WordPress,Joomla,Drupal."/>
<meta name="keywords" content="zamów,stronę,tworzenie,www,programista,portfoio,php,javascript,html,css,WordPress,Joomia,Drupal"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans|Lato" rel="stylesheet">
</head>
<body>
<div id="container"/>
<div class="regtangle">
<div id="logo">Jan Kowalski</div>
<div id="zegar">12:00:00</div>
<div style="clear:both;"><div>
</div>
<div class="square">
<div class="tile1">1</div>
<div class="tile1">1</div>
<div style="clear:both;"><div>
<div class="tile2">2</div>
<div class="tile3">3</div>
<div style="clear:both;"><div>
<div class="tile4">4</div>
</div>
<div class="square"></div>
<div style="clear:both;"><div>
<div class="regtangle"></div>
</div>
</body>
</html>
CSS
body
{
background-color:#303030;
color:#FFFFFF;
font-family: 'Lato', sans-serif;
font-size:20px;
}
#container
{
width:1000px;
margin-left:auto;
margin-right:auto;
}
.rectange
{
width:960px;
margin:20px;
}
.square
{
float:left;
width:50%;
}
#logo
{
float:left;
font-size:70px;
font-family: 'Josefin Sans', sans-serif;
width:600px;
}
#zegar
{
float:left;
font-size:70px;
font-family: 'Josefin Sans', sans-serif;
}
.tile1
{
float:left;
width:230px;
height:142px;
background-color:#3095d3;
margin:10px;
}
.tile2
{
float:left;
width:230px;
height:142px;
background-color:#666666;
margin:10px;
}
.tile3
{
float:left;
width:230px;
height:142px;
background-color:#93c748;
margin:10px;
}
.tile4
{
width:480px;
height:142px;
background-color:#ee523a;
margin:10px;
}
I odrazu pytanie nr 2. czy lepiej wklejać tak kod na forum czy poprzez specjalna stronę do tego, już nie pamiętam nazwy :)