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,13 +37,13 @@
<script src="../scripts/cookieinfo.js"></script> <script src="../scripts/cookieinfo.js"></script>
</div> </div>
<script src="index.js"></script> <script src="index.js"></script>
<div id="footer"> </div>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <div id="footer">
<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> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script> <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>
(adsbygoogle = window.adsbygoogle || []).push({}); <script>
</script> (adsbygoogle = window.adsbygoogle || []).push({});
</div> </script>
</div> </div>
</body> </body>

View file

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