Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS: Span not applying text-color attribute

Reply
Thread Tools

CSS: Span not applying text-color attribute

 
 
Noozer
Guest
Posts: n/a
 
      09-26-2004
Why doesn't my text color apply for a SPAN element? I get the body
text-color instead.

In my style sheet:
SPAN.selection { text-color: #FFFFFF; background: #005bb7; padding: 2px; }

In my HTML code:
<span class="selection">Selected</span>

Thx!


 
Reply With Quote
 
 
 
 
Spartanicus
Guest
Posts: n/a
 
      09-26-2004
"Noozer" <(E-Mail Removed)> wrote:

>Why doesn't my text color apply for a SPAN element? I get the body
>text-color instead.
>


>text-color


No such thing, use "color".

--
Spartanicus
 
Reply With Quote
 
 
 
 
Noozer
Guest
Posts: n/a
 
      09-26-2004

"Spartanicus" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) anicus.utvinternet.ie...
> "Noozer" <(E-Mail Removed)> wrote:
>
> >Why doesn't my text color apply for a SPAN element? I get the body
> >text-color instead.

>
> >text-color

>
> No such thing, use "color".


Thanks! Having a bad day here and my cold medication is not helping. : (


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1>… Stéphane Klein Python 2 03-30-2010 12:35 AM
Re: I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1>… Stefan Behnel Python 0 03-29-2010 08:14 PM
Can span include span? Fulio Open HTML 5 06-26-2009 10:24 PM
DataGrid (body only) contained in <span>...</span> tags Dan Bishop ASP .Net Datagrid Control 2 06-07-2004 04:00 PM
Enable drag and drop to the text between <span></span> Wang, Jay Javascript 5 05-25-2004 09:33 PM



Advertisments