Tag: css
-
The Fourth Way to Inject CSS
Dan explains why using Link: HTTP headers for stylesheets should be considered a distinct way of loading CSS (that you can't use).
-
CSS Logical Properties
Andy Bell recommends use of CSS logical properties to help lay out and space content in a language-independent way.
-
Loading CSS Asynchronously Without JS Dependency
Dan proposes a new technique for lazy-loading CSS which doesn't break style for non-JS users.
-
Old CSS, new CSS
eevee describes their experience of the early-CSS and pre-CSS Web, and Dan echoes a familiarity with the topics covered.
-
CSS4 is here!
Peter-Paul Koch of QuirksMode proposes that CSS4 should be declared a "thing", for marketing reasons, and Dan agrees.
-
Using the Web for Exhibition Interactives
As he writes up notes for his successor, Dan explains how the Bodleian's interactive digital signage uses the power of the Web.
-
The Real Dark Web
An analogy between dark matter and the huge crowd of web developers who are using such "boring" technology stacks.
-
Reply to: A modern font loading strategy with the vanilla JS FontFaceSet.load() method
Chris Ferdinandi's suggestion of using FontFaceSet.load() to prevent FOIT seems overkill. What's wrong with font-display: swap;?
-
Reducing motion with the picture element
A simple, elegant way to use an inline CSS media query to provide "prefers-reduced-motion" support on animated content.
-
css-only-chat/README.md at master Β· kkuchta/css-only-chat Β· GitHub
Of all the things I've seen hacked-together with just HTML and CSS on the client-side, I never thought I'd I'd see a "push"-capable live chat app...
-
Blogging with semantic insertions and deletions
Adapting your CSS can make semantically-enhanced /
modifications to a blog post clearer to readers. -
Modern CSS on DanQ.me
Dan explains three of the cutting-edge CSS features implemented on his blog.
-
CSS-driven console graphics
There's an Easter egg in danq.me which you can see in your browser's debug console.
-
Making single color SVG icons work in dark mode
In a project I work on, we had a couple of buttons that consisted of just icons (with visually hidden help text). The awesome QA engineer I worked with, found some of those did not show up in dark mode, which rendered the buttons unusable for users of that mode. Using inline SVGs with currentColor β¦
-
When to use CSS vs. JavaScript
CSS before JS #
My general rule of thumb isβ¦
If something I want to do with JavaScript can be done with CSS instead, use CSS.
CSS parses and renders faster.
For things like animations, it more easily hooks into the browserβs refresh rate cycle to provide silky smooth animations (this can be done in β¦









