I am not allowed to credit the site that has this disaster. Its owner said “Nobody should see that”

You are viewing a single thread.
View all comments View context
53 points

I love the superstitious z-index just in case it does something to help.

permalink
report
parent
reply
23 points

At least that’s actually easy and quick to do and is the only way of doing it. Centering a div however has 81639393 ways and it seems the one that works is different every time

permalink
report
parent
reply
46 points

Bro its so easy bro, just use flexboxgridcolumns its been a standard since 2010 just flex it bro you haven’t learned to flex yet just check w3c schools and add a flex you can polyfill it but don’t use that hacked one use the good flexpolyfill then { content-align-middle-child-elements: center-middle-true-neutral } so easy with flex bro

permalink
report
parent
reply
10 points

Dude, stop flexing on him. You’re gonna make him cry.

permalink
report
parent
reply
17 points

I know you meant this sarcastically, but yes, flex is a good option for centering something. Either that or setting the left and right margins of the element to auto, which is generally even easier.

Basically, if you’re in a flex container use flex, if you’re in a grid use grid, and if neither of those apply set the left and right margins to auto.

permalink
report
parent
reply
10 points

You’ve perfectly captured twitter tech bro energy it’s kind of incredible actually

permalink
report
parent
reply
1 point

It’s 2024 and flexboxes still don’t work that well with vertical direction and wraparound…

permalink
report
parent
reply
1 point

It’s a good indicator that someone is desperate and/or doesn’t know what they’re doing.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2K

    Monthly active users

  • 861

    Posts

  • 14K

    Comments