Hello kyhryt,
I wonder if
position: fixed; is really what you mean to use. I'm not sure why the negative margins either. If you really do want <header> to be fixed, you should use top or bottom, and left or right to move the element where you want it. Look at a positioning tutorial that might help
here.
You also have an element, #wrapper, that is closed in the wrong place. I'm not sure what the purpose of #wrapper would be, it looks like
divitis to me. Either that or you've started it in the wrong place and you meant for #wrapper to contain <header>?
Have a look at it without the positioning -
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Introduction</title>
<style type="text/css">
html, body {
background: #fff;
color: #000000;
font: 13px Arial, Helvetica, sans-serif;
}
#wrapper {
width: 800px;
margin: 0 auto;
overflow: auto;
background: #ccc;
}
header {
background: #000;
height: 180px;
width: 100%;
}
#logo {
margin-left: auto;
margin-right: auto;
margin-top: 80px;
}
nav {
padding-top: 23px;
font-size: 1.2em;
word-spacing: 6px;
word-spacing: 6px;
font-family: PTSansNarrowRegular;
}
#greybar {
background: #333;
height: 35px;
width: 100%;
}
section {padding: 20px;}
</style>
</head>
<body>
<div id="wrapper">
<header>
<div id="logo"><a href="introduction.html"><img src="MAL_Logo.png" alt=" Modern London Architecture" /></a></div>
<nav>
<a href="introduction.html">introduction</a>
<a href="buildings.html">buildings</a>
<a href="contactIMD.html">contact</a>
<a href="reply.html">reply</a>
<a href="sources.html">sources</a>
<a href="architects.html">architects</a>
<a href="exhibitions.html">exhibitions</a>
</nav>
</header>
<div id="greybar"> </div>
<section>
<h1>The background of Modern Architecture: </h1>
<p>
Modern (also known as International style, Neue Sachlichkeit and functionalism)
architecture refers to simple building styles and came into fame in the late 19th and
20th centuries. Unlike other architectural styles, Modern architecture is based on functionalist
planning. In other words, Modernism rejected traditional building methods.
</p>
</section>
<!--end wrapper--></div>
</body>
</html>