Title: custom css !important not work
Last modified: February 12, 2020

---

# custom css !important not work

 *  Resolved [loukky](https://wordpress.org/support/users/loukky/)
 * (@loukky)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-important-not-work/)
 * i what to move up scrollToTopButton 15px, i type
    .btt{ bottom:35px !important;}
   in custom css,and i save changes.but when reload page,i found the page`s custom
   css became .btt{ bottom:35px ; } !important been lost
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-css-important-not-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-important-not-work/#post-12425208)
 * !important is not allowed in AMP. If you add !important it will show some validation
   error. So it automatically removed from custom CSS.
    Can you please add this 
   code to custom CSS? And let me know if the issue is solved or not.
 * a#scrollToTopButton {
    bottom: 35px; }
    -  This reply was modified 6 years, 3 months ago by [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/).
 *  Thread Starter [loukky](https://wordpress.org/support/users/loukky/)
 * (@loukky)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-important-not-work/#post-12425229)
 * it`s working! thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘custom css !important not work’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [loukky](https://wordpress.org/support/users/loukky/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/custom-css-important-not-work/#post-12425229)
 * Status: resolved