natalia9
natalia9
KPCKevin Powell - Community
Created by natalia9 on 9/19/2023 in #front-end
why h1 is overwriting a class
Thank you! Yes, I don't use px for fonts, I was just reviewing a code of a developer that just started to code and was caught off guard with this behaviour 🙂
14 replies
KPCKevin Powell - Community
Created by natalia9 on 9/19/2023 in #front-end
why h1 is overwriting a class
hm, ok, I'll try to understand this. I never had this problem before. Thank you!
14 replies
KPCKevin Powell - Community
Created by natalia9 on 9/19/2023 in #front-end
why h1 is overwriting a class
I thought about this, but when there is no styling applied, its size is let's say 40px. Then when we add font-size 10px to its div, it's 25px. And then when we add 10px to h1, it is 10px. Does it have to do with the default styling?
14 replies