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.

Font Color of Text in Code

View previous topic View next topic Go down

Solved Font Color of Text in Code

Post by runawayhorses on Sat May 19, 2012 12:33 am

I need a CSS code to set the font color of the text when you use the code tags. For example, if I were to use the code tags like below, how can I set the font color of the text in the code tags? I want to set the color as the default font color for all text when using the code tags.

Code:
This color of text here.

thanks


Last edited by runawayhorses on Sat May 19, 2012 1:45 am; edited 1 time in total

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 163
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Font Color of Text in Code

Post by c3vietk on Sat May 19, 2012 12:52 am

phpbb3 : add to css
Code:
.codebox dd{color:#000000}
#000000 <~ d color you want to set
avatar
c3vietk
Forumember

Male Posts : 65
Reputation : 41
Language : Vietnamese, HTML, Javascript, C#, PHP
Location : Vietnam, HCMc

http://diendan.chinhphuc.info/

Back to top Go down

Solved Re: Font Color of Text in Code

Post by Ahkrir on Sat May 19, 2012 1:28 am

I use the above code, works for PunBB.
Not sure for BB3.
avatar
Ahkrir
Forumember

Male Posts : 288
Reputation : 14
Language : English
Location : The Netherlands

http://smarterweb.go-board.com/forum

Back to top Go down

Solved Re: Font Color of Text in Code

Post by runawayhorses on Sat May 19, 2012 1:39 am

No it didn't work at all. I use phpbb3

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 163
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Font Color of Text in Code

Post by Ahkrir on Sat May 19, 2012 1:40 am

Can you get me your forum's url?

Try adding this to your css:
Code:
dl.codebox code {color: #000;}
avatar
Ahkrir
Forumember

Male Posts : 288
Reputation : 14
Language : English
Location : The Netherlands

http://smarterweb.go-board.com/forum

Back to top Go down

Solved Re: Font Color of Text in Code

Post by runawayhorses on Sat May 19, 2012 1:45 am

Yes that one worked! thanks! Smile

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 163
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Font Color of Text in Code

Post by Ahkrir on Sat May 19, 2012 1:49 am

No problem :-)
avatar
Ahkrir
Forumember

Male Posts : 288
Reputation : 14
Language : English
Location : The Netherlands

http://smarterweb.go-board.com/forum

Back to top Go down

Solved Re: Font Color of Text in Code

Post by Jophy on Sat May 19, 2012 1:56 am

Topic Solved & Locked
avatar
Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

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