?
Solved

Css text color

Posted on 2014-10-27
5
Medium Priority
?
113 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 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