• Resolved lindagester

    (@lindagester)


    I want to increase the margin between the compact albums but since the default style is using !important I can’t. I tried putting the CSS in the Default Style Sheet in the settings but it won’t work. This is the code I want to implement:

    .ngg-albumoverview.default-view .ngg-album-compact {
    margin: 0 10px 20px 0 !important;
    }

    That is 20px margin-bottom instead of 10px.

    Can you help med with this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mihai Ceban

    (@mihaiimagely)

    You can try to override a CSS rule that already has !important by default using a stronger CSS selector that contains parent CSS selectors on a higher level than the default one, so basically you can try to use:

    body .ngg-albumoverview.default-view .ngg-album-compact {
        margin: 0 10px 20px 0 !important;
    }

    Hope this helps

    Thread Starter lindagester

    (@lindagester)

    Today when I entered the site my css with !important worked without having to change anything ?? But thanks fot the tip!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘!important’ is closed to new replies.