I want to add style (CSS) to my html anchor tags but when I am giving style to “a” tag, it is enabling only to style the anchor tags of NAVIGATION BAR but I have to add styles to my topics below navigation bar
PLEASE ANYONE SEND ME A CODE EXAMPLE TO HOW TO DO THAT
You could add a CSS class to each of those elements, for example, .link
, and then add some CSS in the head like so:
body a.link {
color: skyblue;
background-color: navy;
padding: 1rem 1.2rem;
border-radius: 0.5rem;
}
which would produce a button-like element like so: 
7 Likes