Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As a mostly backend guy that's the case most of the time for me.

I never really got my head around the correct way to think in CSS.

I am at the "I can see numerous ways of doing this" but I never really know the standard or best way to do it. It was the same when I started doing web dev / Django stuff, whereas now, with years of experience, I do know the best way to approach a problem, to keep code minimal and clean and readable.

(If anyone can suggest some tutorials that get me past that stag with CSS I would grateful).



https://every-layout.dev shows how to leverage CSS properly, from first principles.


Thanks, I'll check it out.


The correct way to think in CSS is to think in HTML, which has the functionality we need (like a checkbox etc) and CSS is an enhancement on top of it. Ditto JS.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: