Powered by:
FutureQuest Hosting


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

Web Hosting
Shared       
Reseller     
VPS             
Dedicated 
Price:   $(US)
Space:     (MB)
Transfer:(GB)
Platform:


Advertise
Advertising Opportunities
Rate Card

Sponsor
Go Back   Webmaster Forums > Code Forum > CSS Forum


Reply
 
Thread Tools Rate this Webmaster Discussion
  #1  
Old 03-24-2009, 12:41 PM
illusionbuster illusionbuster is offline
Junior Member
 
Join Date: Mar 2009
Location: north carolina
Webmaster Discussions: 4
Rep Power: 5
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?


Reply With Quote
  #2  
Old 03-24-2009, 01:01 PM
jthayne's Avatar
jthayne jthayne is offline
Senior Member
 
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 492
Rep Power: 15
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.
Check out the following sites: www.inbutnotoftheworld.com and www.mythoughtexactly.com.
Reply With Quote
  #3  
Old 03-24-2009, 02:03 PM
illusionbuster illusionbuster is offline
Junior Member
 
Join Date: Mar 2009
Location: north carolina
Webmaster Discussions: 4
Rep Power: 5
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.
Reply With Quote
Reply
Sponsor

Bookmarks

Tags
color , css , text

Thread Tools
Rate This Thread
Rate This Thread:

 

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 06:17 PM
Changing Text Box Scroll Bar Color DaWebmasta HTML Forum 1 08-13-2004 09:43 PM
Text color on buttons Glenvern HTML Forum 5 04-17-2002 06:14 PM


All times are GMT -5. The time now is 10:51 PM.

Copyright © 1999 - 2009 Advanced HTML For Beginners and AHFB2000. All rights reserved.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.