DEV Community

Discussion on: Top CSS Interview Questions with detailed answers.✌️🤩✌️ Part I

Collapse
 
johncip profile image
jmc • Edited

This is pretty cool, thanks.

I think the explanation of A6 is wrong, if I understand your meaning:

if we apply a featured class on a link we lose all the rules from the nav element

Not all of them -- only the properties which appear in both blocks will be overridden. For the example you gave, the link will have text-decoration: none and color: white. You only "lose" the background-color: green entry.

For Q26, you may want to specify that the container isn't flex, etc.

Collapse
 
theodesp profile image
Theofanis Despoudis

Thank you I will fix.