UPDATE: After further examination, it appears that the code is functioning correctly. My apologies for any confusion.
I am attempting to override certain CSS rules on specific pages. Below is an example of my approach. Can anyone confirm if this is a valid method? I am experiencing issues with it not working in my browsers.
main.css:
#header {
background-color: yellow;
color: #003300;
height: 65px;
margin-top: 5px;
padding: 10px 0 10px;
}
index.html
<head>
<link rel="stylesheet" type="text/css" href="/main.css" />
<style>
#header {
background-color: red;
}
</style>
</head>