Pure CSS Website
71–80 of 103 posts
Re: Pure CSS Website
#72 Link: ; REL=stylesheetRe: Pure CSS Website
#73I built this website to see what was possible with only one div, and a stylesheet. No JS, No other HTML, just CSS. Source: https://github.com/archiewood/pure-css-site
Nice! I love seeing stuff like this on HN. Using a solid border for the cursor instead of having it in the text content is a nice touch; because it's separated out you could probably use another animation to get it blinking, too.
would you use another keyframe or did you have something else in mind
Re: Pure CSS Website
#74Using pure CSS to make a 3D "game engine": https://keithclark.co.uk/labs/css-fps/
Re: Pure CSS Website
#75Earlier quoted context omitted.
I wasn't going to mention the invalid HTML. Thank you for doing it.
I thought we all agreed to ignore validity a while back when XHTML gave way to HTML5.
Re: Pure CSS Website
#76And none of the text is selectable :(
Browser bug? Seems like it's debatable although the spec leans in the direction of generated content being selectable: https://stackoverflow.com/questions/24385171/is-it-possible-...
Re: Pure CSS Website
#77Earlier quoted context omitted.
After examples showcased at https://a.singlediv.com/ , I would not be surprised by anything...
Wow. Thanks for sharing.
Re: Pure CSS Website
#78Re: Pure CSS Website
#79I knew it would be a demonstration of the CSS "generated content" feature.
It's one broad class of problem really: many frameworks make changing the HTML they generate difficult or impossible. Inevitably you end up needing to inject a button or a hyperlinked image or something in a particular position, and you have to resort to Javascript to do something that isn't interactive and isn't a program, which feels like the wrong tool.
You could argue that both Javascript and CSS are the wrong tool for this use case, but CSS would be the more convenient wrong tool.
Re: Pure CSS Website
#80Nice work! It’s possible to get rid of even that single div - https://35bytes.maczan.pl/