Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
The 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.
-
C0D4668814yBrute force works.... sure.
Or you could just learn the theory behind the madness.
https://developer.mozilla.org/en-US... -
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 -
@AleCx04 being a we dev since 2015 I can tell you I've never needed floats. Just flex ox everything. Makes things a lot more understandable.
Ive never used the clearfix hack -
@AleCx04 What's even more hacky and also still in use is the "padding bottom hack" to have responsive images while avoiding layout jumping during page load.
-
@Codex404 man I wish, seen far too much bs from old browsers. If i could use flex and grid components on all my shit i would but some people insist on supporting old ass shit :(
-
@Fast-Nop man people fight me on that one stating that it is not a hack, but I know a hack when I see one!
Related Rants
disclaimer i dont understand css to begin with so you can discard my opinion
You have all these options for width https://developer.mozilla.org/en-US... , but guess what none of them do anything different as you brute force try them all in the chrome debugger. Dunno what cascades except my butthurt
so fuck it ~1000% width works and has an ugly overhang, but fuck front end
rant
butthurt
bruteforce
css