css

4 posts tagged “css”.

  1. 2025
  2. A simple two column CSS grid

    I decided to use CSS grids for this. I started with GPT-4. My prompt: HTML and CSS to display a grid of four images, each with a paragraph caption below the image - use figcaption The 2x2 grid should…

    2 min read
  3. 2024
  4. Dropdown menu with details summary

    I added dropdown menus to Datasette 0.51 - see 1064. I implemented them using the HTML element. The HTML looked like this: See the top right corner of https://latest-with-plugins.datasette.io/ for a…

    1 min read
  5. 2023
  6. Styling an HTML dialog modal to take the full height of the viewport

    Today I got Claude to build me an experiment to use it for a side panel that would slide in from the right hand side of the screen, looking like this: But what's with that gap at the bottom?

    3 min read
  7. Understanding the CSS auto-resizing textarea trick

    Chris Coyier wrote about the new property, which can get a to automatically expand to fit its content - but currently only in Google Chrome Canary.

    5 min read