by archiewood on 3/22/24, 6:34 PM with 94 comments
by archiewood on 3/22/24, 6:34 PM
No JS, No other HTML, just CSS.
by yu3zhou4 on 3/22/24, 10:27 PM
by somishere on 3/22/24, 9:21 PM
Nice job tho. Now just need to make it in 3D.
by egypturnash on 3/23/24, 1:03 AM
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 <link> (if you ignore all the stuff the Wayback Machine adds)
by souvlakee on 3/22/24, 9:24 PM
by yerich on 3/23/24, 1:45 AM
by NiagaraThistle on 3/24/24, 7:29 PM
I know there are times when you need to do something CSS can't (and shouldn't do of course. But I mean when the 'thing' is design/style only, aren't we all already using only CSS for those things? Or am I just so old I still practice the separation of concerns and no one else is.
Also, while kudos to the OP for doing this, this is exactly a time when using CSS to do this is incorrect and using vanilla Javascript IS the right decision, as this is a behavior and not a style issue.
NB4: Yes I do code sloppy when time dictates, but I still seperate my HTML, CSS, and JS as the norm, not the exception.
by jraph on 3/23/24, 2:16 PM
I have an extension that adds a div to the page, Grammalecte, its breaks this website a bit. A div:first-child, or an id would fix it.
A reminder that extensions can affect HTML content and you need to target your elements in CSS in a robust way.
by userbinator on 3/23/24, 5:54 AM
by mmh0000 on 3/22/24, 10:58 PM
I love it!
by superkuh on 3/23/24, 4:15 AM
Link: <//website.css>; REL=stylesheet
by chris_wot on 3/23/24, 2:53 AM
by Pesthuf on 3/22/24, 8:13 PM
by dheera on 3/23/24, 4:08 AM
by johnisgood on 3/23/24, 12:37 PM
by tiborsaas on 3/23/24, 10:42 AM
edit: nevermind, that's a dead URL. But anyways, it's an extra http request you don't need.
by butz on 3/22/24, 9:17 PM
by bawolff on 3/22/24, 9:38 PM
I wonder if you could do this with no <div> using just the <link> tag.
Or do browsers add an implicit body tag if you don't put one that you can style?
by amelius on 3/23/24, 3:11 PM
by cyberax on 3/23/24, 7:58 AM
What next? Single letter applications?
by Alifatisk on 3/23/24, 2:20 PM
No, the link tag is there.
by tithos on 3/23/24, 1:20 AM
by Julesman on 3/22/24, 10:10 PM
by phirschybar on 3/23/24, 3:17 PM
by kennedy on 3/23/24, 1:12 AM
by ape4 on 3/22/24, 10:32 PM
@keyframes typewriter {
00.0% { content: "A" }
00.4% { content: "A " }
00.8% { content: "A W" }
01.2% { content: "A We" }
01.6% { content: "A Web" }
02.0% { content: "A Webs" }
02.4% { content: "A Websi" }
02.8% { content: "A Websit" }
03.2% { content: "A Website" }
13.2% { content: "A Website," }
13.6% { content: "A Website, " }
14.0% { content: "A Website, i" }
14.4% { content: "A Website, in" }
14.8% { content: "A Website, in " }
15.2% { content: "A Website, in P" }
15.6% { content: "A Website, in Pu" }
16.0% { content: "A Website, in Pur" }
16.4% { content: "A Website, in Pure" }
16.8% { content: "A Website, in Pure " }
17.2% { content: "A Website, in Pure C" }
17.6% { content: "A Website, in Pure CS" }
18.0% { content: "A Website, in Pure CSS" }
22.2% { content: "A Website, in Pure CSS." }
}
by lacoolj on 3/22/24, 8:53 PM
am I not seeing something else?
by pimlottc on 3/22/24, 9:02 PM
by xyst on 3/22/24, 11:31 PM
https://lighthouse-metrics.com/lighthouse/checks/38f2276c-bc...
lol,
by corywatilo on 3/22/24, 11:11 PM