So I am learning HTML, CSS, PHP, and I am using php include to add the header & footer I can set the footer to a certain height for each page or set it invidually by creating separate stylesheets.
Is there a way to get the footer to appear under content for every page using php include? When the content is different lengths on each page?
Here is my footer code
HTML
<footer>
<ul>
<a href="../../page1.php">
<li>page1</li>
</a>
<a href="../../page2.php">
<li>page2</li>
</a>
<a href="../../page3.php">
<li>page3</li>
</a>
<a href="../../page4.php">
<li>page4</li>
</a>
<a href="../../page5.php">
<li>page5</li>
</a>
</ul>
</footer>
CSS
footer {
padding: 20px;
margin-top: 450px;
height: 1%;
color: #ffffff;
background-color: #30323D;
text-align: center;
}
footer ul {
margin-left: 0;
padding: 0;
list-style-type: none;
float: left;
}
footer ul a {
text-decoration: none;
color: #fff
}
footer p {
margin-top: 120px;
}