Changing Code Background Color Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    Changing Code Background Color

    FairyTailRP
    FairyTailRP
    Forumember


    Posts : 40
    Reputation : 1
    Language : English, Spanish, Mandarin, Cantonese

    Solved Changing Code Background Color

    Post by FairyTailRP June 25th 2014, 5:18 am

    Hello.... I wanted to know if it was possible to change the background color of the [code] [./code] so it isn't white since my font color is white and it makes it really hard to see that there's text there.

    Basically I've been having to change the font color to something else like below, but every single time I edit the topic or thread it changes back to white. So I'd prefer if I could change the background color to something else like black or maybe even transparent.

    Changing Code Background Color Screen10

    Thanks!


    Last edited by FairyTailRP on June 25th 2014, 8:15 am; edited 1 time in total (Reason for editing : Solved)
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51550
    Reputation : 3519
    Language : English
    Location : United States

    Solved Re: Changing Code Background Color

    Post by SLGray June 25th 2014, 5:29 am

    Please post a link to a post that has the code box in it that guests can see.



    Changing Code Background Color Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    FairyTailRP
    FairyTailRP
    Forumember


    Posts : 40
    Reputation : 1
    Language : English, Spanish, Mandarin, Cantonese

    Solved Re: Changing Code Background Color

    Post by FairyTailRP June 25th 2014, 5:37 am

    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13246
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Changing Code Background Color

    Post by Ange Tuteur June 25th 2014, 6:31 am

    Hello FairyTailRP,

    You can change the background and font color with the following CSS rule.

    Administration Panel > Display > Colors > CSS stylesheet
    Code:
    .codebox dd {
      color:#FFF;
      background:#000;
    }
    FairyTailRP
    FairyTailRP
    Forumember


    Posts : 40
    Reputation : 1
    Language : English, Spanish, Mandarin, Cantonese

    Solved Solved!

    Post by FairyTailRP June 25th 2014, 8:13 am

    Thanks Ange Tuteur! It works like a charm.


    Solved. √
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51550
    Reputation : 3519
    Language : English
    Location : United States

    Solved Re: Changing Code Background Color

    Post by SLGray June 25th 2014, 8:23 am

    Topic Solved & Archived



    Changing Code Background Color Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.