SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Remove #ScrollToTop on surden sceensizes

3 years 7 months ago #126123 by artctrldel.info@gmail.com
Remove #ScrollToTop on surden sceensizes was created by artctrldel.info@gmail.com
Hi,

I would like to remove #ScrollToTop on sreensizes where it overlaps content.

I would like to remove it from 465 px to 585 px
753 px to 846 px
940 px to 1040 px
1175px to 1320 px

With custom CSS.

@media (max-width: 480px){
#scrollToTop{
display: none !important;
}

Thanks

Please Log in to join the conversation.

3 years 7 months ago #126131 by Nick
Replied by Nick on topic Remove #ScrollToTop on surden sceensizes
Hi Benjamin,

You can use:
@media (min-width: 465px) and  (max-width: 585px) {
#scrollToTop{
display: none !important;
}
}

Hope this helps! Let us know if you have any questions and we'll be glad to answer.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: artctrldel.info@gmail.com

Please Log in to join the conversation.

3 years 7 months ago #126155 by artctrldel.info@gmail.com
Replied by artctrldel.info@gmail.com on topic Remove #ScrollToTop on surden sceensizes
So How do I remove it on some screensizes from x - to y and then again ...?

Thanks

Benjamin

Please Log in to join the conversation.

3 years 7 months ago #126161 by Valentin
Replied by Valentin on topic Remove #ScrollToTop on surden sceensizes
Hi Benjamin,
Nick suggestion is correct.
@media (min-width: 465px) and  (max-width: 585px)
This line means the scroll-to-top button will be hidden in screens that match that criteria.

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: artctrldel.info@gmail.com

Please Log in to join the conversation.

3 years 7 months ago #126167 by artctrldel.info@gmail.com
Replied by artctrldel.info@gmail.com on topic Remove #ScrollToTop on surden sceensizes
SOLVED (y)

Please Log in to join the conversation.

3 years 7 months ago #126169 by Valentin
Replied by Valentin on topic Remove #ScrollToTop on surden sceensizes
Awesome! :)

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: artctrldel.info@gmail.com

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!