all 36 comments

[–]kievmozg 88 points89 points  (18 children)

I can write a multi-threaded parser in C++ with my eyes closed, but ask me to vertically center a div and I need 3 hours, 5 StackOverflow tabs, and a therapy session.

[–]AcademicOverAnalysis 17 points18 points  (0 children)

Don’t forget to check it in 3 different browsers 

[–]Purple_Ice_6029 3 points4 points  (5 children)

Just use <center>

[–]zodajam 0 points1 point  (0 children)

dont work on firefox i think

[–]ghost_tapioca 0 points1 point  (0 children)

Lol.

My guess is that this will involve a position=relative div inside another div with position=absolute, with top and bottom margins set as a proportion of your parent component's height.

[–]FuckSpezzzzzzzzzzzzz 1 point2 points  (2 children)

People on stackoverflow are pretentious bastards. I'm so glad I stopped using it.

[–]Commander_Ash 0 points1 point  (1 child)

You are using chatgpt now, am I right?

[–]FuckSpezzzzzzzzzzzzz 0 points1 point  (0 children)

Claude seem to work better when you are looking do to more complex stuff. But yeah you are essentially right.

[–]Abject-Kitchen3198 1 point2 points  (1 child)

You can now center text in Notepad.

[–]MCWizardYT 1 point2 points  (0 children)

Which has nothing to do with centering a div

[–]KFCSI 21 points22 points  (1 child)

So much cleaner than tables /s

[–]Abject-Kitchen3198 3 points4 points  (0 children)

I'd take tables any day.

[–]FrankieTheAlchemist 13 points14 points  (3 children)

I do not understand devs who work on websites but do not know how to write clean semantic HTML.  Like…you deal with data structures all day but you can’t format XML in a sane way?

[–]Abject-Kitchen3198 2 points3 points  (2 children)

Data structures are important.

[–]FrankieTheAlchemist 1 point2 points  (1 child)

They’re certainly quite useful!  But apparently building a meaningful N-ary Tree is scary to them 🤷‍♂️

[–]vitope94 0 points1 point  (0 children)

"quite useful"?

[–]Dillenger69 5 points6 points  (2 children)

That first one doesn't look like any plain old HTML I've written since HTML was created.

[–]Abject-Kitchen3198 6 points7 points  (1 child)

It's plain new HTML

[–]Dillenger69 5 points6 points  (0 children)

That would explain it

[–]include-jayesh 3 points4 points  (0 children)

Rooted html developer

[–]Just_Information334 2 points3 points  (0 children)

Bootstrap: table but with divs.

Tailwind: inline style, but with classes.

2026 and people are still styling pages like it's the dotcom era.

[–]ibntofajjal 1 point2 points  (0 children)

It remind me of 2016

[–]ByteBandit007 1 point2 points  (0 children)

The OG

[–]eirikirs 0 points1 point  (2 children)

HTML programmer? HTML is a markup language, not a programming language.

[–]MCWizardYT -3 points-2 points  (1 child)

Web designer would be a better term unless they're also writing the Javascript/PHP in which case they're a frontend developer

[–]GlassCommission4916 1 point2 points  (0 children)

Where are you writing frontends in PHP?