31
nitwhiz
5y

90% of rants about CSS are just people who don't even know CSS2 properly and never heard of CSS3.

That's like crying about not having a nice car without even owning a drivers license. Bullshit.

Comments
  • 3
    Well, they probably weren't doing anything in the css2 days, let alone 1... oh I remember those days.
  • 9
    It's more like owning a car that will turn left or right when you want to keep it centered.
  • 2
    CSS is easy tbh. Usually it's just browsers doing funky stuff causing side-effects
  • 5
    Absolutely agree. Does anyone here remember Internet Explorer 5.5 for Macintosh? Now that thing had a fucked up engine...
  • 3
    Flexbox all the things
  • 3
    I was one of them! Stuck to it. Things got easy. Got hold of flexbox. I'm okay now!
  • 2
    @Wack IE on mac. the cursed combo
  • 0
    Because CSS is a pain in the ass. Because I can’t even use height:100%. Because it’s just bad.
    CSS3 add some nice features. Special thanks for “position: sticky” for tables rows/columns. But even that shit requires more than 20 lines to fix 3 rows and 2 columns and if placement is not pixel perfect you have some problems
    And first front-end to use flexbox will be fired
  • 2
    @NoToJavaScript don't be offended but without even knowing your project, i'm totally sure you're just doing it wrong.

    You just said (analogy): it's bad. This cooking pan won't even let me cook.
    Of course it let's you cook - but you gonna need the skill + a fucken oven.
  • 0
    @nitwhiz Maybe. I’m only doing html/css part because someone needs to do it. We have a full-time front-end dev in 12 days.
    And bad ? I don’t know: SASS is used, all bundling and minification is handled. All controls defined separately. It’s just so much pain that now I’m just putting: transform : translate to align shit. (And we dropped IE support about 6 months ago).
  • 3
    @NoToJavaScript height: 100%; works, in the right context. Depending on display or position it might not work as you think it should, but it works as specified. You might want height: 100vh; or you'll have to rewrite a chunk of your CSS.

    About using SASS, minifing, etc. Just because you own a state of the art "kitchen" and are using the latest nonsticking pan doesn't mean your Food will be delicious. That's why there are cooks and that's why there are frontend devs...
  • 0
    @Wack Here you go : "in the right context."

    I understand what you are saying.
    And I could reply the same for other technologies: Querying records one by one from database works in the right context (eg : you have only 1 record in database).
    It’s just CSS need to get the shit together! Do we really need ANOTHER thing for “display” ?
    Or units, how about standardizing that shit ? px,em,pt and I probably forget some of them.
    I like “calc” tho and I was hopping -ms-grid from like 3years ago will be implemented but apparently not
  • 2
    @Wack thanks for reusing that kitchen thing :D
  • 1
    @NoToJavaScript dude grid is a thing btw. CSS3.
Add Comment