Cześć. Robie stronkę do szkoły i mam problem przykleiłem górną belke do "góry" ale kiedy chcę podtym dać nagłówek nic nie ma zauważyłem że jest "pod" belką. Pomożecie ?
<!doctype html>
<html lang="PL">
<head>
<title>Rowery</title>
<meta charset="utf-8">
<meta name="description" content="Skelp rowerowy. Nalepsze rowery w Polsce!">
<meta name="keywords" content="rowery, sklep, bike, shop">
<meta name="author" content="Michał Warmuz">
<meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="css/fontello.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin-ext" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<header>
<div id="header">
<div id="logo">
<h1>Rowery</h1>
</div>
<nav>
<div id="nav">
<ul>
<li>Strona Główna</li>
<li>Nasz sprzęt</li>
<li>O nas</li>
<li>Kontakt</li>
</ul>
</div>
</nav>
<div style="clear: both;"></div>
</div>
</header>
<main>
<section>
<h1>sdkfosd</h1>
</section>
</main>
</body>
</html>
CSS:
body
{
margin: 0;
background-color: #2F3336;
color: #efefef;
font-family: 'Open Sans', sans-serif;
font-size: 17px;
}
#header {
background-color: black;
padding: 2px;
position: fixed;
top: 0;
left: 0;
width: 100%;
}
#logo {
float: left;
margin-left: 100px;
}
#logo h1 {
letter-spacing: 5px;
text-transform: uppercase;
}
#nav {
float: right;
list-style-type: none;
margin: 0;
margin-right: 100px;
margin-top: 20px;
font-size: 20px;
}
#nav li {
display: inline;
list-style-type: none;
margin-right: 10px;
}
#nav li:first-child {
color: #E8980E;
}