fixed ad placement, I hate css

This commit is contained in:
Ellpeck 2020-04-18 23:09:53 +02:00
parent c640fd6c84
commit 62eeb4289f
2 changed files with 18 additions and 12 deletions

View file

@ -37,14 +37,14 @@
<script src="../scripts/cookieinfo.js"></script>
</div>
<script src="index.js"></script>
</div>
<div id="footer">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5754829579653773" data-ad-slot="1438750467" data-ad-format="auto" data-full-width-responsive="true"></ins>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5754829579653773" data-ad-slot="1438750467" data-ad-format="horizontal" data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</body>
</html>

View file

@ -1,7 +1,3 @@
html {
height: 100%;
}
body {
font-family: Roboto;
margin-top: 30px;
@ -71,8 +67,10 @@ body {
#footer {
position: fixed;
width: calc(100% - 300px);
right: 0;
bottom: 0;
width: 100%;
padding: 15px;
}
.anchor {
@ -90,6 +88,10 @@ body {
#sidebar {
width: 200px;
}
#footer {
width: calc(100% - 200px);
}
}
@media (max-width: 510px) {
@ -101,6 +103,10 @@ body {
width: 100px;
}
#footer {
width: calc(100% - 100px);
}
#sidebar a {
font-size: 80%;
margin-bottom: 10px;