Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Semi-standard "slash pages" you might like to explore:
    • /about
    • /blank
    • /blogroll
    • /colophon
    • /contact
    • /cv
    • /events
    • /license
    • /pfp
    • /postcards
    • /privacy
    • /salary
    • /shh
    • /slashes
    • /stats
    • /subscribe
    • /where
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

Tag: css

  • Composite screenshot showing an image gallery with thumbnails of a dog, a sandwich, and a man; the dog thumbnail has opened up into a larger photo, which is now overlaid with HTML and CSS code describing the mechanism by which the lightbox works.

    Details/summary lightboxes in pure HTML + CSS

    For years, I've been using a HTML+CSS-only technique for popover 'lightbox' images on my blog. Now I've come up with a more-semantic way to do the same, and its HTML code is tidier too!

    Read more - about 3 minutes (660 words)

    • Article
    • 2 comments
    • posted 15 August, 2025
  • Screenshot of PleaseFixThisSite.com, featuring all of the design sins described below.

    Please Fix This Site? Okay!

    PleaseFixThisSite.com is a funny web-based take on that XKCD comic about extorting graphic designers who hate your design choices. But you don't actually need to pay the extortionist to "fix" their site. Just have your userscript manager run a few lines of my code, and the effect is much the same.

    Read more (393 words)

    • Article
    • 2 comments
    • posted 18 July, 2025
  • Screenshot showing cards with simple pictures of animals, filtered using radiobuttons and checkboxes to show those which are mammals AND herbivores. The list is comprised of an alpaca, camel, cow, elephant, elk, giraffe, hippo, kangaroo, manatee, panda, rabbit, rhino, sheep, and sloth.

    Dynamic Filters in Pure CSS

    CSS is powerful and performant. Let's implement client-side list filtering (with the user's choice of AND and OR modes) in CSS, without a line of JavaScript.

    Read more - about 3 minutes (618 words)

    • Article
    • 2 comments
    • posted 7 May, 2025
  • Outdoors, under blue skies and trees, Dan tosses his blue ponytail as he talks about a code snippet superimposed beneath him, showing a HTML video element with the first source (landscape.mp4) selected.

    Variable-aspect adaptive-bitrate video... in vanilla HTML?

    Thanks to recent browser enhancements, it's possible to show videos of different aspect ratios based on CSS media queries with no JavaScript dependencies. You can even combine it with adaptive bitrate streaming, even on static hosting. Let me show you how.

    Read more - about 6 minutes (1191 words)

    • Article
    • 1 comment
    • posted 30 April, 2025
  • Build Colors from Colors with CSS Relative Color Syntax

    Caleb Hearth wrote an inspiring piece about CSS's new OKLCH functions, and now I want nothing more than to (re-?)implement something using this colour model!

    Read more - about 3 minutes (500 words)

    • Repost
    • of this original
    • posted 7 November, 2024
  • "Wow, this is real pretty!" in a rainbow gradient.

    CSS Cycling Gradient Text

    Ana Tudor shared an absolutely gorgeous effect based on SVG filters, CSS properties, linear-gradients, and (after all of that) relatively-basic animations. It's pretty amazing.

    Read more (44 words)

    • Note
    • 2 comments
    • posted 1 October, 2024
  • Dan poses in front of circa 1999 and present-day copies of his blog, both showing posts from January 1999.

    Blogging Like It's 1999

    After looking at a 1999 screenshot of my blog, I was inspired to implement an alternate theme for my blog today, that brings back the feel of the Web of the last millenium. And you can try it!

    Read more - about 4 minutes (748 words)

    • Article
    • 4 comments
    • posted 27 July, 2024
  • A design for a completely different part of the WooCommerce Extensions Management tool, again with a little green blob. Dan's floating head looks thoughtful above it, with a thought-bubble reading "wow, we're really going all-in on these little blobs, aren't we?"

    The Stupidest CSS

    Yesterday, I wrote the stupidest CSS code of my entire web development career. The code itself wasn't the stupid bit; my misinterpretation of the designer's wishes was what caused the problem!

    Read more - about 3 minutes (514 words)

    • Article
    • 5 comments
    • posted 19 March, 2024
  • Close-up of a champagne-coloured French Bulldog wearing a teal jumper, lying in a basket and looking towards the camera.

    Lightboxes Without JavaScript

    An image lightbox overlay with no JavaScript whatsoever? Absolutely. Here's how I do it.

    Read more - about 4 minutes (921 words)

    • Article
    • 3 comments
    • posted 12 December, 2023
  • Screenshot showing my webpage, "The Page With No Code". Using white text (and some emojis) on a blue gradient background, it describes the same thought process as I describe in this blog post, and invites the reader to "View Source" and see that the page genuinely does appear to have no code.

    The Page With No Code

    View Source shows nothing, but the page has content. The Page With No Code is the kind of puzzle that makes web developers unhappy.

    Read more - about 3 minutes (654 words)

    • Article
    • 11 comments
    • posted 11 January, 2023
  • The kenburns-bottom CSS effect selected using Animista.

    I know what it means, but my inner child still sniggers every time I see @CSSAnimista's effect "kenburns-bottom".

    Read more - about 1 minutes (18 words)

    • Note
    • 5 comments
    • posted 9 February, 2022
  • Bash shell running the command "curl -i https://hell.meiert.org/core/php/link.php". The response includes a HTTP Link: header referencing a CSS stylesheet; this is highlighted.

    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).

    Read more - about 4 minutes (715 words)

    • Article
    • 3 comments
    • posted 21 December, 2020
  • CSS Logical Properties

    Andy Bell recommends use of CSS logical properties to help lay out and space content in a language-independent way.

    Read more (159 words)

    • Repost
    • posted 16 September, 2020
  • The Web Pyramid. In the style of a "food pyramid", shows Text Worth Reading at the bottom, supporting Markup, supporting Images, supporting CSS, supporting (a small amount of) Scripts.

    Loading CSS Asynchronously Without JS Dependency

    Dan proposes a new technique for lazy-loading CSS which doesn't break style for non-JS users.

    Read more - about 3 minutes (665 words)

    • Article
    • 22 comments
    • posted 9 August, 2020
  • Image representing post: Old CSS, new CSS

    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.

    Read more (347 words)

    • Repost
    • posted 26 February, 2020

Posts navigation

Older posts
Newer posts

Get in Touch

I'd love to hear from you! Why not...

  • email me on blog@danq.me?
    (my spam filter is aggressive, so use a good subject line, i.e. not just "hello"; encrypt your email if you like)
  • say hi on Mastodon, where I'm @dan@danq.me?
  • send a letter or postcard to
    Dan Q, Unit 159610, PO Box 7169, Poole, BH15 9EL, UK
  • reach out some other way?
  • ยฉ Dan Q 1998-2026
  • Creative CommonsAttributionNon-Commercial except where stated (how to use)
  • powered by BloqClassicPressHTML5CSS3
  • privacy
  • Read articles, checkins, notes, reposts, and more...
  • @dan@danq.me
  • contact
  • subscribe
  • Dan Q
  • Creative Commons Attribution Non-Commercial license
  • ClassicPress
  • CSS is awesome
  • Created by a human, not by AI
  • LGBTQ+ pride flag (2018 progress variant)
  • Polyamory flag
  • Say no to Web3
  • Mastodon (it's like email... no, come back!)
  • Tested on Firefox
  • Best viewed on the Internet
  • PHP
  • Ruby
  • Debian
  • Caddy (webserver)
  • Find me on Melonland
  • Check out my GitHub
  • Three Rings - by volunteers, for volunteers, since 2002
  • I'm a fucking webmaster
  • Looks best at: any resolution!