3 ms·
I think honestly my biggest problem is just lack of familiarity. I don't do a lot of front-end work, and when I am doing front-end work it's probably a side pro
by freehunter 8y ago
I think honestly my biggest problem is just lack of familiarity. I don't do a lot of front-end work, and when I am doing front-end work it's probably a side project that I'm not getting paid for. If I'm working on my own time, the back-end stuff is more interesting to me so I spend as little time as possible on front-end.
Order of precedence is the hardest thing for me to figure out, if I have three nested <div>s and a couple of <li> elements and all of them with a conflicting fontColor property, which one takes precedence? If I think really hard and trace back all the code, I can figure it out. Or I can put an !important on it and future me will deal with the consequences.
- bushin 8y agoTry BEM: http://getbem.com/naming/ http://getbem.com/naming/
- exikyut 8y agoI googled "css specificity" and it autocompleted "calculator", which led me to https://specificity.keegan.st/ https://specificity.keegan.st/. You can paste in a series of selectors (getting new boxes by clicking "duplicate"), then hit "Sort by specificity".