Read the original article in CodeThat.today
CSS tends to produce excessive headaches among developers, and we don't blame them. Working with CSS c...
For further actions, you may consider blocking this person and/or reporting abuse
For A19, I'd use SMACSS :P
Not as concise, but:
Removed the
margin-top
as letting the parent handle it means.navList
can be reusable.I love SMACSS. Knowing the specificity rules is good, but not needing to is even better.
This is pretty cool, thanks.
I think the explanation of A6 is wrong, if I understand your meaning:
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
andcolor: white
. You only "lose" thebackground-color: green
entry.For Q26, you may want to specify that the container isn't flex, etc.
Thank you I will fix.
A1: unvisited? That may be the state, but thatβs not a CSS value as far as I know, :link is (for an unvisited link element).
The old LoVe, HAte!
A14 is incorrect. !important has nothing to do with specificity. It's part of the wider cascade.
I will probably have to rephrase it as
can we override inline styles that marked as !important?
ThanxFor Q32, I think you meant to say
box-sizing: border-box
instead of.box-sizing:content-box
Good catch. Thank you
I would have expected a little more flex and grid. Looking forward for the second part.
Yes in the next part which is WIP
Thank you for such helpful resource.