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 decrease the space between subforum columns?

Discussion in 'Styling and Customization Questions' started by Alfa1, Aug 1, 2013.

  1. Alfa1

    Alfa1 Well-Known Member

    I have turned the subforum popup off, so that the subforums appear in columns.
    How do I decrease the space between the columns?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Add to EXTRA.css:
    Code:
    .node .subForumList li {
    width: 25% !important;
    }
    
    Change the % to suit.
     
    Alfa1 likes this.
  3. Alfa1

    Alfa1 Well-Known Member

    The % changes the number of columns, but not the space inbetween. Maybe its better to increase the right margin, as my main goal is to have 3 columns, all located left of node.last.post
     
  4. AndyB

    AndyB Well-Known Member

    Hi Alpha1,

    On my forum I tried turning off the "subforum popup off" but the extra line would have resulted in a forum list way too long to suit my needs.

    I ended up putting the sub-forums under the forum title, here's an example:

    pic001.jpg

    If you only have a few sub-forums this solution might work for you too. Let me know if you would like an example of the template changes.
     
    Alfa1 likes this.
  5. Alfa1

    Alfa1 Well-Known Member

    I have hundreds of subforums, so I need tightly fit columns.
     
  6. AndyB

    AndyB Well-Known Member

    Sorry I don't know what you mean. Will the solution I use work for you?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Add to EXTRA.css:
    Code:
    .node .subForumList {
    margin: 0px 200px 0px 20px !important;
    }
    
    .node .subForumList li {
    width: 25% !important;
    }
    Change the margins and width to suit.
     
  8. Alfa1

    Alfa1 Well-Known Member

    Thanks! That works great.
     

Share This Page