Search results
Results from the WOW.Com Content Network
the underline on links is done using the text-decoration css style, i think it's the same color as the text. if you set the text-decoration to none then add a border-bottom you can change the color with the border-color style.
This solution: a.register:link {color:#FFF} ...changes the color of a link whose class is "register". But that's not what the OP was asking. And this solution: .register a:link {color:#FFFFFF;} ...changes the color of a link that itself has no class but is placed inside of a div with class "register".
1. In case you are not actually directing users to a new page and just want to change anchor color use javascript: first you have to Give your links a class like .changeable. then you can use javascript like this: var links = document.getElementsByClassName('changeable'); function changeColorToRed(e) {.
As of HTML5, the foreground colors of hyperlinks, among other things, are on track for standardization in the form of guidelines for expected default rendering behavior. In particular, taken from the section Phrasing content, the recommended default colors for hyperlinks are the following: :link { color: #0000EE; } :visited { color: #551A8B; }
If you want the link corresponding to the current page to be highlighted, you can define some specific style to the link -. .currentLink {. color: #640200; background-color: #000000; } Add this new class only to the corresponding li (link), either on server-side or on client-side (using JavaScript).
So I created a CSS file called custom.css or custom.scss. And then defined a new CSS rule with the following properties:.remove_link_colour { a, a:hover, a:focus, a:active { color: inherit; text-decoration: none; } } Then I called this rule wherever I needed to override the default link styling.
You can add the following CSS: h4 a:hover span {. color: red !important; // Change the color to your preference. } the :hover guides what happens when anchor is hovered upon. I added !important just so that it can overwrite the inline css in span element. You might not need the !important declaration, if you move the inline CSS to external CSS.
I assume you want to change the color of the link in 'home' div. The CSS code will be -. #home a:link { color: #70DB93; } #home a:visited { color: #70DB93; } #home a:hover { color: #70DB93; } #home a:active { color: #70DB93; } Try it and let us know! answered Aug 18, 2012 at 18:17. some_other_guy.
a, a:visited{ color: /* some color */; } This, indeeed, will mantain your <a> color (whatever this color is) even when the link has been visited. Notice that, if the color of the element inside of the <a> is being inherited (e.g. the color is set in the body), you could do the following trick: a, a:visited { color: inherit; }
0. Since you are using wordpress and the wygiswys wrap text inside <p></p> you can try: p a:link{color:red}; and it will change the color of each link inside a paragraphe. answered Nov 4, 2017 at 21:43. abderrazzak mohamed. 36 4. Notice: Paragraphs always have default padding. Better would be a span or direct styling.