r/webdev 🛠 Dev 👁 0

My solution for a multi-column description list without breaking

Is there a CSS solution to stop breaks between dd's so that each column always starts with a dt? I ran into this problem and came up with this solution: if a dt is in an odd-numbered position, place it and its dd on the

📄

This source provides headlines only. Use the button below to read the complete article on the original site.

📰 Read the original article on r/webdev

Originally published by r/webdev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.