I just added a "return to top"-button below this very link, but the space between them is too much.
If this link has a CSS-code, then I think I could fix this issue with "margin-bottom".
But if not, how can I fix this?
Thanks.
.copyright {
margin-bottom: -15px;
}
<script>
window.addEventListener('load',function() {
let btnTop = document.querySelector('.copyright strong a');
if (btnTop) {
document.querySelector('.copyright').style.marginBottom = '-35px';
} else { document.querySelector('.copyright').style.marginBottom = '-5px';
}
});
</script>
document.querySelector('.copyright').style.marginBottom = '-35px';
} else { document.querySelector('.copyright').style.marginBottom = '-5px';
sivastar, TonnyKamper and Friendly Toucan like this post
p.copyright strong a {
YOUR PROPERTIES HERE
}
Friendly Toucan likes this post
Razor12345 wrote:The code is worked, when the page is fully loaded.
Remove the codes you inserted in the CSS.
YoshiGM wrote:
- Code:
p.copyright strong a {
YOUR PROPERTIES HERE
}
Very, very cool. The only problem is that this only changes the icon on the main page. On all other pages it is still a bit messed up. Thoughts?
Razor12345 wrote:
The code is worked, when the page is fully loaded.
Remove the codes you inserted in the CSS.
YoshiGM wrote:You can tell me what do want to do with the administration panel link and i will adapt the code ^^!
skouliki wrote:if this thread then is solved please mark it as completed
skouliki likes this post
Razor12345 wrote:
- Code:
.copyright {
margin-bottom: -15px;
}
$(function() {
if(_userdata["user_level"] == 1) {
$('head').append('<style>.copyright { margin-bottom: -15px; }</style>');
}
});
sivastar and Friendly Toucan like this post
Niko likes this post
Problem solved & topic archived.
|