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.

Colour of [code] box?

3 posters

Go down

Solved Colour of [code] box?

Post by JDobbsy1987 Sun 21 Nov - 18:07

Hi,

Is it possible to change the default colour of the code box on a forum?

Example
Code:
 Change the colour of this box


Regards,
JDobbsy1987


Last edited by JDobbsy1987 on Sun 21 Nov - 19:54; edited 1 time in total
JDobbsy1987
JDobbsy1987
Forumember

Male Posts : 147
Reputation : 0
Language : England (UK)
Location : Cheshire

http://www.JDobbsyFreeAds.darkbb.com

Back to top Go down

Solved Re: Colour of [code] box?

Post by Guest Sun 21 Nov - 18:12

put this in you CSS
ACP - Display - Colors - CSS stylesheet:
Code:

code {color: YOUR COLOR HERE;}
avatar
Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 Sun 21 Nov - 18:19

Thank you for your reply...

I cant seem to get that to work?

i have tried both:
Code:

code {color: #FFFFFF}
code {color: white}

am i doing it wrong?

if it makes a difference i already have:
Code:

a.mainmenu{
filter:alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 1.0;
  }
a.mainmenu:hover{
          filter:alpha(opacity=50); 
-moz-opacity: 0.65; 
opacity: 0.55;
    }

not sure what that is for though.

Cheers
JDobbsy1987
JDobbsy1987
Forumember

Male Posts : 147
Reputation : 0
Language : England (UK)
Location : Cheshire

http://www.JDobbsyFreeAds.darkbb.com

Back to top Go down

Solved Re: Colour of [code] box?

Post by Guest Sun 21 Nov - 18:33

Try this:
Code:
.code {color: #FFFFFF;}
avatar
Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 Sun 21 Nov - 18:34

that changed the color of the text inside the box but not the box color?
JDobbsy1987
JDobbsy1987
Forumember

Male Posts : 147
Reputation : 0
Language : England (UK)
Location : Cheshire

http://www.JDobbsyFreeAds.darkbb.com

Back to top Go down

Solved Re: Colour of [code] box?

Post by Guest Sun 21 Nov - 18:44

Orh lol.. i though u mean the text inside it :/
Try this:

Code:
.gensmall b {color: #fff;}
avatar
Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 Sun 21 Nov - 18:48

The text is useful to know however i replace the above code with
Code:
.gensmall b {color: #fff;}

and the text goes back green bu the box doesnt change color?
JDobbsy1987
JDobbsy1987
Forumember

Male Posts : 147
Reputation : 0
Language : England (UK)
Location : Cheshire

http://www.JDobbsyFreeAds.darkbb.com

Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 Sun 21 Nov - 18:52

i was after the same code box as this forum...

mine looks like this:

Colour of [code] box? Captur10

This forum has borders and things.... can that not be changed?

either way i would like a white box rather than grey Very Happy
JDobbsy1987
JDobbsy1987
Forumember

Male Posts : 147
Reputation : 0
Language : England (UK)
Location : Cheshire

http://www.JDobbsyFreeAds.darkbb.com

Back to top Go down

Solved Re: Colour of [code] box?

Post by Guest Sun 21 Nov - 18:57

May I remind you that double/triple posting isn't tolerated unless separated by 24 hours (Use the edit button) Wink

I'm confused. do want change the color where it says Code: or change the box border color?
avatar
Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 Sun 21 Nov - 19:08

Sorry for the double post Sad

I would like to change the colour of the box from grey to white...

if it is more clear then i have created an example post at my forum here

Sorry for the confusion

and i am greatful for all the help
JDobbsy1987
JDobbsy1987
Forumember

Male Posts : 147
Reputation : 0
Language : England (UK)
Location : Cheshire

http://www.JDobbsyFreeAds.darkbb.com

Back to top Go down

Solved Re: Colour of [code] box?

Post by Maki1 Sun 21 Nov - 19:34

Try this

Code:
.code {
background-color: #FFFFFF;
}
Maki1
Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English »» CSS Stylesheet
Location : The » Support » forum » Section! • No support by PM If you need custom theme please contact me!

Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 Sun 21 Nov - 19:38

That is perfect!!

Thank you for your help.

Thank you to Ganster15 too.

Regards,
JDobbsy1987
JDobbsy1987
JDobbsy1987
Forumember

Male Posts : 147
Reputation : 0
Language : England (UK)
Location : Cheshire

http://www.JDobbsyFreeAds.darkbb.com

Back to top Go down

Solved Re: Colour of [code] box?

Post by Sanket Sun 21 Nov - 20:56

Since this thread is marked solved, I will lock this thread.
Colour of [code] box? 2j4t5a8

Sanket Smile

Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum