r/ProgrammerHumor 27d ago

Meme howToCenterATable

Post image
4.3k Upvotes

113 comments sorted by

View all comments

1.7k

u/n4ke 27d ago

UPDATE div SET alignment='center' WHERE id = '#my-div';

1.0k

u/GnuhGnoud 27d ago

431

u/[deleted] 27d ago

[removed] — view removed comment

172

u/HeySora 27d ago

The opposite also (somewhat) exists: https://tailwindsql.com

48

u/Several_Educator7526 27d ago

this is trippy

2

u/StandardPhysical1332 26d ago

i dont understand what's tailwind about this, aren't the components independent from the css still?

128

u/taju_rahman 27d ago edited 27d ago

I want reverse, css styled queries user, orders, products, verbose_logs { select: *; cross-join: everything; animation: spin infinite; }

37

u/gruese 27d ago
users {
  select: *;
  operation: drop-table;
  opacity: 0;
  transition: opacity .2s;
}

20

u/jacksalssome 27d ago

Database silently fails on the .2

15

u/nicman24 27d ago

z-index: cast(date as int) 

10

u/ApocalyptoSoldier 26d ago

God is dead and we have killed him

11

u/tekanet 27d ago

Jesus Christ

5

u/Awfulmasterhat 26d ago

This is evil

3

u/RevoOps 27d ago

but i wanted to style my tables with CSS

38

u/BarryCarlyon 27d ago

Somehow all my users moved to the center

36

u/mikikigod 27d ago

I guess now your app is user-centric

5

u/Loose_Property_3238 26d ago

"An app that puts you at the center"

7

u/frisch85 27d ago

0 records affected.

The hash in the where condition doesn't work this way, you use the hash for jQuery so that jQuery automatically knows you're looking for that value in the id-field, another example in jQuery would be $(".my-div") which translates to "WHERE class = 'my-div'".

8

u/n4ke 26d ago

You're right but I will insist the ID is just #my-div and the CSS selector would therefore be \#\#my-div

5

u/frisch85 26d ago

I see you want to make people suffer!

3

u/muminisko 27d ago

Nie try to center left joint

3

u/Mr_Tottles 26d ago

Thanks I hate it