Answer the question
In order to leave comments, you need to log in
The footer runs over the text, how to fix it?
* {
margin: 0;
padding: 0;
outline: none;
}
body {
font: 16px Arial, sans-serif;
background-color: #eee;
}
header {
height: 80px;
width: 100%;
background-color: #fff;
border-bottom: 1px solid #ccc;
box-sizing: border-box;
}
.logotype {
padding-left: 20px;
}
.logo {
padding-top: 5px;
}
footer {
height: 200px;
width: 100%;
background-color: #fff;
border-top: 1px solid #ccc;
box-sizing: border-box;
position: absolute;
bottom: 0;
}
<body>
<header>
<div class="logotype"><img src="system/img/logo.png" title="WebMasters" class="logo"></div>
<div class="services"></div>
</header>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<br> <br>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<footer>
</footer>
</body>
Answer the question
In order to leave comments, you need to log in
First put the content in a container and then give it margin-bottom:200px;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question