colors - CSS: How to make link colour the same as parent div -


There is a simple rule that can be written in CSS so that all links can choose the standard font color selected in those divisions. , But when they go for blue color and when they are not clicked to change the color, then I want to keep them in light only, else it remains the same, this is the only div which is the problem Coming down in the bottom

CSS:

  .textundergrey {height: 140px; Width: 950px; Margin-left: auto; Margin-right: auto; Margin-top: 15px; Font-family: "OpenSane Lite", Ariel, Serif; Font-size: 20px}    

If you want to keep the link in the same color Div you should use the color: heir and when you should use the rotation then blue should be turned on:

  a: hover {color: blue; }   

With this code link also, do not change colors.

Try:

HTML:

  & lt; Div id = "yellow" & gt; & Lt; A href = "#" & gt; Yellow & lt; / A & gt; & Lt; / Div & gt; & Lt; Div id = "red" & gt; & Lt; A href = "#" & gt; Red & lt; / A & gt; & Lt; / Div & gt;   

CSS:

  a {color: heirs; } A: Hover {Color: blue; } # Yellow {color: yellow; } #red {color: red}    edit  (from comments)  

using the below Use just for text-decoration: none;



Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -