I want my <header>-tag centered on my page. But my code aligns left on the page.
CSS-code
header {
background-color: #660000;
border-radius: 15px;
width:1000px;
height:200px;
margin:0 auto;
padding: 10px 0 0 0;
z-index:99999;
position:fixed; /* this line gives me the problem I think */
top:0;
float:none;
}
.textarea_article {
background-color: #1f423c;
border-radius: 15px;
width:1000px;
height:1500px;
margin-top:205px;
padding: 10px 0 0 0;
z-index:500;
}
HTML-code
<body>
<header>
this is my header text and is align on the left side of page.
</header>
<article class="textarea_article">
This is my textarea-text, and this area is centered
</article>
</body>
I hope some see a fault in this code and gives me tip.
by hbraekke