Websites and banners, made understandableImages · Code · WordPress
Home / HTML & design
THE WEB ARTICLE INDEX

HTML & design

Make pages easier to read with image wrapping, line length, contrast and a legible favicon. Open a guide for a code example and a check you can run in your browser.

Reserve space for three card covers

Check the cards on a narrow screen before and after the images load.

  1. Give each cover wrapper aspect-ratio: 4 / 3 and the full card width.
  2. For mixed source proportions, set image width and height to 100% and use object-fit: cover. Check the crop.
  3. At two widths, compare wrapper heights and heading positions before and after loading.

Example: a 320 px wide wrapper at 4:3 is 240 px tall. The heading below it keeps its position after the image loads if the wrapper height and other layout conditions stay fixed.

Width 320 px → Ratio 4:3 → Height 240 px
The cover has reserved space before the image loads.

W3C · CSS Box Sizing