Navid
June 20, 2018, 6:34pm
1
In my tribute page I’ve created some linked text , my page background color is blue and linked text remain blue other text is right(white). I can’t change the blue color of my linked text.
can you guys help me , here is my project link:
I want to change my linked text color
You need to target a under article.
One way to do it is through selecting direct children using > notation.
For example,
article > a {
color: ...;
}
Navid
June 21, 2018, 4:10am
3
Tried but still not working
Are you sure?
When I insert the code between your other selectors, it works.
article,a{
max-width:75em;
margin:0 auto;
text-align:left;
font-size:auto;
text-decoration: none;
}
article > a {
color: green;
}
a: link { color: black; }
a:visited { color:pink; }
a:hover{ color: red; }
a:active{ color: yellow; }
1 Like
Navid
June 21, 2018, 5:30am
5
Thanks a lot, it works
(it didn’t worked before cause I added code like this :
article > a{
max-width:75em;
margin:0 auto;
text-align:left;
font-size:auto;
text-decoration: none;
color: black;
}
1 Like