FACN1 / week1-javiasy

HTML, CSS and JavaScript developers
https://facn1.github.io/week1-javiasy/
0 stars 1 forks source link

Try to avoid using '*' selector in css #24

Open Jbarget opened 7 years ago

Jbarget commented 7 years ago

https://github.com/FACN1/week1-javiasy/blob/master/css/style.css#L3-L7

In css you want to be as specific as possible [specificity] (https://designshack.net/articles/css/what-the-heck-is-css-specificity/) and on large sites with a lot of html elements it can be slow

mantagen commented 7 years ago

A bit of discussion on this: https://css-tricks.com/margin-0-padding-0-no-longer-cool/

mantagen commented 7 years ago

And then some: https://the-pastry-box-project.net/oli-studholme/2013-june-3

HilbertSpitzer commented 7 years ago

I think we might only need: "h1, h2, h3, p, a, img, b, ul, li, form, label, table, article, header, nav, section" but we might also need: ",code, object, q, s, u, i, tr, th, td"