"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Go Back   Webmaster Forums > Code Forum > CSS Forum

Reply
 
Thread Tools Rate this Webmaster Discussion
Old 03-24-2009, 11:41 AM   #1
illusionbuster
New Member
 
Join Date: Mar 2009
Location: north carolina
Webmaster Discussions: 4
Rep Power: 9
illusionbuster is on a distinguished road
Red face Css text color

I am trying to use Css to change text color (not using it for headers)and then change it back to previous color but in using:
.navy {color:#000080;}
.black {color:#00000;}
etc
HTML= <div class="navy"> etc

what happens is in HTML the color is changed but it does so on a new line and I want it on the same line. Is there another way of doing this?


illusionbuster is offline   Reply With Quote
Old 03-24-2009, 12:01 PM   #2
jthayne
 
jthayne's Avatar
 
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 501
Rep Power: 21
jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.
Re: Css text color

Use a span instead of a div.
__________________
Be sure to click the reputation icon to give rep to the person who helped you.
For web design/development services, check Silentium Designs.
jthayne is offline   Reply With Quote
Old 03-24-2009, 01:03 PM   #3
illusionbuster
New Member
 
Join Date: Mar 2009
Location: north carolina
Webmaster Discussions: 4
Rep Power: 9
illusionbuster is on a distinguished road
Re: Css text color

Quote:
Originally Posted by jthayne View Post
Use a span instead of a div.
Ah! Thank you very much. It worked. This will save me a lot Html code typing.My fingers are joyful.
illusionbuster is offline   Reply With Quote
Reply

Bookmarks

Tags
color, css, text

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
Mouseover Text Color Changes in Multiple Colors TrickyFingers Javascript Forum 3 11-29-2007 07:55 AM
CSS text color change htmldummie CSS Forum 10 03-15-2005 04:33 PM
Changing Color of Text Box Scroll Bar DaWebmasta HTML Forum 4 08-14-2004 05:17 PM
Changing Text Box Scroll Bar Color DaWebmasta HTML Forum 1 08-13-2004 08:43 PM
Text color on buttons Glenvern HTML Forum 5 04-17-2002 05:14 PM


All times are GMT -5. The time now is 09:13 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.