![]() |
| HTML | PHP Scripts | Webmaster Tools | Webmaster Forums | Web Hosting | Domain Names | Webmaster Books |
|
|
#1 |
|
New Member
Join Date: Mar 2009
Location: north carolina
Webmaster Discussions: 4
Rep Power: 9 ![]() |
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? |
|
|
|
|
|
#2 |
|
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 501
Rep Power: 21 ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2009
Location: north carolina
Webmaster Discussions: 4
Rep Power: 9 ![]() |
Re: Css text color
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| color, css, text |
| Thread Tools | |
| 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 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 |