Solved

Css text color

Posted on 2014-10-27
5
111 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
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…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

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