Css selector confusion

a:visited{ background: purple; padding: 6px; } /*Doesn't work without declaring*/ a{ background: lightblue; }

Read this article. Basically, you can only change some css properties for visited, and only if they are present in the link state.

1 Like