Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Fast-Nop2840732dThe tricky part is to understand the underlying box model and what a relative size refers to. Depending on the property, it may be relative to the size of the object itself, or to the parent object. Some shit only even works if the parent object has a defined size. And then there's a difference between inline and block elements.
katbreitin116932d!important is your best friend
Future devs on the project will hate you
Failing Css is super difficult to debug if you don't have the complete picture of all the css that's in work. And that could include
- css coming from included css files and urls
- css coming from the included css files' Included css
- css in the html file via some tag's style attributes
- css in the html file in some <style> tag
- css coming from js in include js file
- css cominf from js in some included js framework
Some other places that i might have missed. I dealt with an html template and boy there are a lot of such weird shit with css going on.
we can defend cas all we want or recognize that the fact that the "clearfix hack" is still a thing....a thing that is still referenced as a hack.
I know this shit properly enough to not require some bs like bulma or bootstrap....yet css is still and will continue to be bullshit....i hate web development...
source: been a web dev since 2009