obsidian astro img resize

good enough

type: fragment

cluster: tech, digital_garden
intro:

/* from gemini: Select any image where alt text contains "#half" */
img[alt*="|50%"] {
  width: 50%;
  height: auto;
  display: block; /* Optional: centers the image if you use margin: auto */
}

created on: Tue Nov 18 2025