0
How to I structure the html tags to enable me style "Home" different from others
I want align Home to the left and others to the right. https://code.sololearn.com/WTlc6HuByPZH/?ref=app
4 Réponses
0
Iwasam Enya css nth-child is explained in detail here
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
+ 1
Use a class like you used in your div
your div had a class "eny"
you can also add classes to any other tags
add a class attribute to your <a>
like
<a class="home" href="#">home<a>
other ways include targeting the first child of your div element
0
It's of all solutions possibles
https://code.sololearn.com/WwKw4k7M7z91/?ref=app
0
Heuba Batomen I don't understand this css 9th child..... can you recommend a topic or subheading in css where I can read it up?