News for hackers. Stuff that matters.
Re:CSS Zen Garden by thinkloop on Thursday March 19, 2020 @06:00PM (#22632204)
The main (only?) way html affects style is containment - the hierarchical nature of it and the ability for components to be "inside" other components. I feel like I already bump into this issue quite often with something as basic as whether an <input> should be inside the <label> or next to it. The only way, I believe, to resolve containment issues is with absolute positioning (right?). Given enough time and change requests, every element will eventually have to become absolutely positioned, which would become a mess - do you agree with this and how do you handle it?
Re:CSS Zen Garden by rglullis on Thursday March 19, 2020 @06:14PM (#22632316)
I am not a frontend specialist, but "display:grid" solved a lot of these issues for me. You can define even template areas and make things responsive with align-self, justify-self and related directives.