1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 How to color subforums?

Discussion in 'Styling and Customization Questions' started by MirandaSings, Sep 4, 2015.

  1. MirandaSings

    MirandaSings Active Member

    Hello,
    I added this code into extra.css

    .node .subForumList {
    background: #87CEFA;
    }

    But it does not change the color of text

    Anyway to change it?

    Thanks =)
     
    Last edited: Sep 4, 2015
  2. Amaury

    Amaury Well-Known Member

    Have you tried adding an !important declaration?
     
  3. MirandaSings

    MirandaSings Active Member

    Like this?
    .node .subForumList {
    background: #87CEFA; !important
    }
     
  4. Amaury

    Amaury Well-Known Member

    Correct, but the semi-colon should be at the end since it's the closer.
     
  5. MirandaSings

    MirandaSings Active Member

    Yes still doesn't work
     
  6. Amaury

    Amaury Well-Known Member

    You're referring to this, correct?

    XF Sub.PNG
     
  7. MirandaSings

    MirandaSings Active Member

  8. Amaury

    Amaury Well-Known Member

    Ah, okay. Now it's clear what you want.

    You don't need !important, then, if the background changed without it. Add color to your code.
     
  9. MirandaSings

    MirandaSings Active Member

    Hmm
    .node .subForumList {
    background: #87CEFA;
    color; red
    }

    Correct?

    Lol sorry not good with coding
     
  10. Amaury

    Amaury Well-Known Member

    Code:
    .node .subForumList {
        color: red;
        background-color: blue;
    }
    It doesn't really matter if color is before or after background-color, it just makes sense to me to do it that way since that's the order in the style properties.
     
  11. MirandaSings

    MirandaSings Active Member

    Yes still not working ;s
     
  12. MirandaSings

    MirandaSings Active Member

    Any solution?
     

Share This Page