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
    • /domains
    • /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
  • Things

Tag: css

  • Image of owls on a webpage, with a 'zoom in' cursor superimposed over the image, and a 'pointer' cursor over the 'alt' button in the corner.

    CSS Lightbox with Alt Text Viewer

    Off the back of my details/summary-based semantic HTML+CSS lightbox, I've come up with a way to add Mastodon-like 'show alt text' widgets in the same way, and I'll be applying both to images on my blog's new theme, in the New Year.

    Read more (418 words)

    • Article
    • 1 comment
    • posted 11 December, 2025
  • Dan sits at a cluttered desk reading a copy of DOCTYPE, a magazine with an aggressively 'cyberspace circa 1990' graphic design cover.

    DOCTYPE

    I received my copy of DOCTYPE magazine, a genuine 'type this program in and run it'-style programming magazine but for a modern world, and enjoyed writing, debugging, playing, and then considering refining Stuart Langridge's puzzle The Nine Pyramids.

    Read more (390 words)

    • Article
    • posted 25 November, 2025
  • Screenshot from Layoutit! Terra showing an isometric view of a gridded temperate landscape alongside controls to tweak the amount of land, terrain type, etc.

    Layitout! Terra is a CSS-only implementation of a customisable Transport Tycoon-like terrain generator, and it's left me impressed and confused!

    Read more (255 words)

    • Repost
    • of this original
    • posted 27 October, 2025
  • Lowriders & websites

    Praise for a blog post by Adam Stoddard, defending the handcrafting of software even where it serves no direct purpose other than the satisfaction of its creator.

    Read more (188 words)

    • Repost
    • of this original
    • posted 13 October, 2025
  • 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

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!
  • ChangeYourStarSign.com
  • want and want and want and / tongue against glass shard / to resent and love at once / a joint that locks in place / a face that can be touched / the knowing hurts sometimes
  • TACKYVILLAIN ON-LINE
  • Cool and new webventures! :o)
  • !- visit a really cool kitchen -!
โ„น