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

XF 1.2 How to change the subforum list width per forum.

Discussion in 'Styling and Customization Questions' started by Moddis, Feb 10, 2014.

  1. Moddis

    Moddis Active Member

    Is there a way to define the width of each subforum column. For example, certain forum have 3-6 long subforum names so i would like to have then listed in as columns of 3 using the default style:

    .node .subForumList li {
    float: left;
    width: 31%;
    margin: 2px 0 2px 2%;
    }

    However some forum may have an uneven amount of 4-5 subforum so I would like to try and fit them all using:

    .node .subForumList li {
    float: left;
    width: 20%;
    margin: 2px 0 2px 2%;
    }

    Can I add something to the css to specify that it should only be applied to specific forum id ?
     
  2. katsulynx

    katsulynx Well-Known Member

    Sure you can. Just use .node_ID instead of .node, where ID is of course your desired ID.
     
    Moddis likes this.
  3. Moddis

    Moddis Active Member

    Wohoo, that worked great!

    TY
     

Share This Page