
05.10.2023, 07:13
|
|
Постоянный
Регистрация: 20.01.2016
Сообщений: 403
С нами:
5428363
Репутация:
408
|
|
Сообщение от un1k
I had no idea, to be honest xD. All video/tutorials that I saw when I was starting used this approach with * and since I never had a problem I thought it was a good practice. Thanks, this was very informative.
Developers repeat after each other, but not everyone wants to understand the meaning. In fact, the only reset that needs to be done is:
CSS:
Код:
body
{
margin
:
0
;
}
A good block should be described completely and not rely on global reset styles. Then it will be easy for you to transfer blocks to other projects, even someone else's
|
|
|