I need help with my contentbox. It was placed right below my header before but then I replaced the font of the title for my webpage in the header and for some reason this caused the content to fall down far below my header although this new font actually takes up even less space than the previous one and I have used the inspect-element on the webpage and nothing is in the way of content other than the box-<div>
.
That content is inside of in my HTML so it wouldn’t make sense for the box-<div>
to push content down, I think.
#content {
font-size: 16px;
display: inline-block;
margin-left: 30px;
font-family: "Times New Roman", Times;
text-align: center;
background-color: #1A1A1A;
margin: 30px;
width: 730px;
color: #F1F1F1;
float: right;
}
header {
margin: 0 auto;
color: #F1F1F1;
}
#titel {
float: right;
font-size: 70px;
font-family: 'Stalemate', cursive;
padding: 48px;
}
.box {
width: 1000px;
margin: auto;
}
<!DOCTYPE html>
<html>
<head>
<title> Page </title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="https://fonts.googleapis.com/css?family=Stalemate" rel="stylesheet">
<meta charset="utf-8">
</head>
<body>
<div class="box">
<header>
<img src="#/#.png" alt="#">
<div id="titel">Page</div>
</header>
<aside>
<nav>
<ul>
<li>
<a href="#.html" class="button">#</a></li>
<li>
<a href="#.html" class="button">#</a></li>
<li>
<a href="#.html" class="button">#</a></li>
<li>
<a href="#.html" class="button">#</a></li>
<li>
<a href="#.html" class="button">#</a></li>
<li>
<a href="#.html" class="button">#</a></li>
</ul>
</nav>
</aside>
<div id="content">
<h1>Title</h1>
<p>Text.</p>
<h2>Title</h2>
<div id="img-wrapper">
<div class="img-box">
<a href="#.html"><img src="#/#.jpg" alt="#"></a>
<p> <b>Text</b> </p>
</div>
<div class="img-box">
<a href="#.html"><img src="#/#.jpg" alt="#"></a>
<p> <b>Text</b> </p>
</div>
<div class="img-box">
<a href="#.html"><img src="#/#.jpg" alt="#"></a>
<p> <b>Text</b> </p>
<div>
</div>
</div>
</div>
</div>
</div>
<footer>©Text</footer>
</body>
</html>