I'm facing an issue while trying to split my html code into separate php files. I can't seem to figure out the error in my index.php file. Here is a snippet from the file:
.topheader {
background-color: #404040;
color: white;
padding: 16px;
}
.footer {
background-color: #404040;
color: white;
padding: 16px;
}
<head>
<link rel="stylesheet" href="./css/main.css">
</head>
<div class="topheader">
<h1>KivaGIS</h1>
</div>
<div class="footer">
<h1>Footer</h1>
</div>
Currently, only the .topheader style seems to be applied to the HTML. Both classes are identical and I will enhance them individually once this issue is resolved. Can anyone please review and let me know why the .footer style is not being applied?
Here is a screenshot of how it looks on my machine: