Simon Willison: TILs on css

Atom feed for css

css Styling an HTML dialog modal to take the full height of the viewport - 2025-03-14

I've been experimenting with the HTML dialog element recently, for example in my Prompts.js JavaScript library. …

css A simple two column CSS grid - 2023-10-26

For my blog entry today Now add a walrus: Prompt engineering in DALL-E 3 I wanted to display little grids of 2x2 images along with their captions. …

css Understanding the CSS auto-resizing textarea trick - 2023-09-30

Chris Coyier wrote about the new form-sizing: normal property, which can get a <textarea> to automatically expand to fit its content - but currently only in Google Chrome Canary. Chris also linked to his own favourite trick for doing that, using some CSS grid trickery (original idea by Stephen Shaw). …