Title: Struggeling with special CSS setup
Last modified: September 16, 2018

---

# Struggeling with special CSS setup

 *  Resolved [dahawk](https://wordpress.org/support/users/dahawk/)
 * (@dahawk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/struggeling-with-special-css-setup/)
 * Hi.
 * Thanks for a great plugin!
 * Though, I have some problems. I have manage to get it to work with the element
   that I want to be sticky. All works fine, sort of.
 * I’m trying to get rid of the padding so that the sticky element would be smaller(
   top and bottom gone/reduced) The text size and image size is perfect, but I can’t
   get rid of the padding…
 * As of now, I have this in my CSS:
 * .element-is-sticky {
    background-color: white !important; border-bottom: 1px 
   solid rgba(192, 192, 192, 1); }
 * .element-is-sticky a img {
    width: 130px !important; background-color: white !
   important; }
 * How do I get rid of the padding? And also, if possible on my site, how do i make
   the sticky 100% width of page? (page is all white anyway)
 * I’ll be happy for any help from you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstruggeling-with-special-css-setup%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/struggeling-with-special-css-setup/#post-10693426)
 * It’s not really possible to change the padding of the element when it’s sticky,
   since the size (height) is depending on the height of the original element.
 * If you require these types of changes between the non-sticky element and the 
   stick version, you’d need to use some mroe advanced Javascript, I’m afraid.
 *  Thread Starter [dahawk](https://wordpress.org/support/users/dahawk/)
 * (@dahawk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/struggeling-with-special-css-setup/#post-10693523)
 * Hi.
 * Thanks for your quick reply.
    Hmm. Ok. Then I’ll just leave it as it is I think.

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

The topic ‘Struggeling with special CSS setup’ is closed to new replies.

 * ![](https://ps.w.org/sticky-menu-or-anything-on-scroll/assets/icon-256x256.gif?
   rev=2564941)
 * [Sticky Menu & Sticky Header](https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dahawk](https://wordpress.org/support/users/dahawk/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/struggeling-with-special-css-setup/#post-10693523)
 * Status: resolved