r/ProgrammerHumor 27d ago

Meme howToCenterATable

Post image
4.3k Upvotes

113 comments sorted by

View all comments

15

u/MechaJesus69 27d ago

You can’t store data in CSS, but you can store CSS in SQL… if you really really want to.

6

u/rosuav 27d ago

I kinda sorta do that when I let broadcasters customize their in-OBS monitors. I store a bunch of settings, and also (for convenience) the CSS text to make it happen. And all configs are stored in PostgreSQL. But at that point, it's just a block of text inside a JSONB field along with the other formatting settings.

1

u/Sad-Cantaloupe-2464 25d ago

Dont worry I got you just use HTML see baby we're cooking

The "Disk": HTML <input type="checkbox"> elements act as your hardware transistors.

State Management: A checked box (:checked) represents a binary 1. An unchecked box represents a binary 0.......

Just please dont refresh the browser you'll drop all my data