Site logo

Archived topic

back-to-top-button padding for tablet/cell

3 replies · Started by Torsten on December 12, 2019

Viewing posts 1–4 of 4

Hi,
I tried to set a different right margin for the back-to-top button for tablet/cell with the following:

@media (max-width: 768px) {
.generate-back-to-top, .generate-back-to-top:visited {
    right: 20px;
}

which looks fine but produces the following error code:
expected RBRACE at line 83, col. 2

as I used the following for desktop view:

.generate-back-to-top, .generate-back-to-top:visited {
    right: 60px;
}

where is my error?
Thanks ahead for your help,
Torsten

Hi there,

you're missing a closing brace } after your media query - it should look like this:

@media (max-width: 768px) {

    .generate-back-to-top, .generate-back-to-top:visited {
        right: 20px;
    }
    
}

Thanks a lot.
great, as usual...

You're welcome

This archived topic is closed to new replies.