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

Using code in posts

Discussion in 'XenForo Questions and Support' started by Lone Wolf, Mar 19, 2012.

  1. Lone Wolf

    Lone Wolf Well-Known Member

    My forum is about sports and so we dont post any code. However I do use the code option to post stats as this allows me to evenly space the stats out.

    The only problem is that I get a heading banner which states code: above all my stats and it looks out of place. For example...

    code.png

    I would rather the code boxes looked like the pic below...

    code2.png

    Does anyone know how to achieve this?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Add to EXTRA.css:
    Code:
    .bbCodeCode .type {
    display: none;
    }
     
  3. Lone Wolf

    Lone Wolf Well-Known Member

  4. Brogan

    Brogan XenForo Moderator Staff Member

    Rich code presentation is default functionality.

    It works for me on my site and a default installation using the basic code tags and the code=rich tags.

    I can only assume it's something to do with your custom style.

    Try adding !important.
     
  5. Lone Wolf

    Lone Wolf Well-Known Member

    I didnt need the important, for some reason it didnt work at the bottom of the template, it only worked when I put it first
     
  6. Divvens

    Divvens Well-Known Member

    Happened to me before with another css edit, make sure you aren't missing a ending } after you mentioned rules for another style class
     

Share This Page