Solved

Css text color

Posted on 2014-10-27
5
112 Views
Last Modified: 2014-10-27
I have this tag: <span style='color:blue; text-decoration: underline;'>.

It produces like in the attached; blue underline but text not blue.

Why is text not blue?

Thanks
not-blue.jpg
0
Comment
Question by:Richard Korts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40406724
The something must be overriding it e.g. using !important

If you add !important to the color does it work?
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40406749
If the page has load time scripting then it is quite possible that the style has been hijacked by whatever plugin or theme is scripting the element.

You can try inspecting the element, but if it is getting modified with jquery you may not see accurate results.

Cd&
0
 

Author Comment

by:Richard Korts
ID: 40406755
!important does not work; I suspect the other css colors the <a link> differently; I will try adding color to the <a>
0
 
LVL 58

Expert Comment

by:Gary
ID: 40406763
So there is an anchor tag in the span? Then it will have it's own color not inherited from the span but you could add an inherit

a {
color:inherit
}
0
 

Author Closing Comment

by:Richard Korts
ID: 40406767
Adding this worked: <a href='#' style='color: blue;'

Of course I realize I didn't mention these were links, but issue solved.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question