Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very impressive!

As I've hit my mid-life slide and (regressed|progressed) back to my youth-self, I've found myself just writing a bunch of apps and sites in html and css and really enjoying it.

One thing I still would like to see cracked is a random-like number in pure CSS. You can almost us there with some of the math functions and browser attributes, but I haven't found anything reliable.




Unfortunately that solution does not work on Firefox or Safari.


you can pretty easily get randomness for clickable stuff by animating the z-index of multiple objects


Interesting! I'm not familiar with this approach and look forward to trying it. Do you think it can be used to set a var that can be used for generative colors?


Can LLMs help?


Can they? I think it's weird that you ask a question (or, offer a possible solution in the shape of a question) without verifying your own assertion first.

To answer your question, LLMs confirm you can't generate a random number in CSS.


alas, it seems that just shouting "AI" at problems is the latest trend in people who don't build software acting as though they know how building software works.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: