The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Colour of [code] box?

View previous topic View next topic Go down

Solved Colour of [code] box?

Post by JDobbsy1987 on November 21st 2010, 5:07 pm

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 November 21st 2010, 6:54 pm; edited 1 time in total

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 on November 21st 2010, 5:12 pm

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

code {color: YOUR COLOR HERE;}

Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 on November 21st 2010, 5:19 pm

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
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 on November 21st 2010, 5:33 pm

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

Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 on November 21st 2010, 5:34 pm

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

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 on November 21st 2010, 5:44 pm

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

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

Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 on November 21st 2010, 5:48 pm

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
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 on November 21st 2010, 5:52 pm

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

mine looks like this:



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
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 on November 21st 2010, 5:57 pm

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?

Guest
Guest


Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 on November 21st 2010, 6:08 pm

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
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 on November 21st 2010, 6:34 pm

Try this

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

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!

http://forumdesigners.forumotion.com/

Back to top Go down

Solved Re: Colour of [code] box?

Post by JDobbsy1987 on November 21st 2010, 6:38 pm

That is perfect!!

Thank you for your help.

Thank you to Ganster15 too.

Regards,
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 on November 21st 2010, 7:56 pm

Since this thread is marked solved, I will lock this thread.


Sanket Smile


Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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