I've been incorporating a "footer.php" page into all other pages of my website. This footer showcases the site's name at the bottom of the screen and uses a custom font loaded with @font-face.
Initially, I had something like this placed inside the body:
<div id="scoped-content">
<style type="text/css" scoped>
@font-face {
font-family: 'LilyUPC';
src: url('/common/upcll.ttf');
}
div.footer {
position: fixed;
bottom: 0;
left:0;
right:0;
background-color: black;
float: down;
text-align: center;
z-index: 20;
font-family: "LilyUPC";
color: red;
font-size: 12pt;
text-decoration: underline;
}
</style>
</div>
<a href="/index.php">
<div class="footer">
SiteName
</div>
</a>
Lately, I've become more diligent about writing proper HTML/CSS and have started validating my entire site using the W3C validator. The only error it shows is related to this:
https://i.sstatic.net/1hkCM.jpg Thus far, I haven't found any solutions online. How can I achieve the same (@font-faces) without using the style tag?
It's worth mentioning that I cannot place these declarations in the style.css file because the footer is used in various sub-sites within the website where the style.css files differ.