Live data from Hacker News

Pure CSS Website

pure-css-site.netlify.app

51–60 of 103 posts

Re: Pure CSS Website

#52
post #3

I 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

After examples showcased at https://a.singlediv.com/ , I would not be surprised by anything...

wow these are beautiful

Re: Pure CSS Website

#54

Previous work in this field: https://mathiasbynens.be/demo/css-without-html - completely empty html, doesn't seem to work on Mac Safari any more, does work on Firefox for me. See https://css-tricks.com/using-css-without-html/ if you want to know how it works. https://web.archive.org/web/20160420232319/cj-johnson.github... (original copy defunct) - kinda broken now, the source is just a single (if you ignore all the s…

[deleted]

Re: Pure CSS Website

#55
post #3

I 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

After examples showcased at https://a.singlediv.com/ , I would not be surprised by anything...

I see multiple in the source of that site. That's not a single div.

Re: Pure CSS Website

#58

Nice work! It’s possible to get rid of even that single div - https://35bytes.maczan.pl/

Yeah I was about to mention that there was no need for the div, the body selector should be enough. You could even remove the link tag and use the link header in the http response instead https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Li...

Thanks loads, I always love a day when I learned something neat, and you’ve made that happen today!!

Re: Pure CSS Website

#59
post #3

Earlier quoted context omitted.

After examples showcased at https://a.singlediv.com/ , I would not be surprised by anything...

I see multiple in the source of that site. That's not a single div.

Each image on that page is created with just a single div.
Post reply on HN