Question

Change style on one link

  • 7 January 2022
  • 1 reply
  • 32 views

Hello Community

I need to add style to the first link of this nav bar. Only that one, but i don’t know how to call it on css.

If i add h1, i change all the h1 of the page:(

Not very expert. Can you help me?

https://resistenzatype.fontdue.com


1 reply

Userlevel 6
Badge +1

In most cases you can address the parent element and use the nth child selector to set a style for the specific element.
https://www.w3schools.com/cssref/sel_nth-child.asp

Reply