JulieChristina Posted October 11, 2023 Posted October 11, 2023 Hello, I was wondering how to contain certain text blocks (all monospace paragraph type) to one line? I've built a page of images with descriptions underneath. Instead of having them spill over to a second line, I'd like them to have an ellipsis at the end of the first line, which I've aligned with the edge of my photos. Thanks. website: https://www.holidayst.com/south-pacific password: bonvoyage
tuanphan Posted October 15, 2023 Posted October 15, 2023 It looks like you solved with this CSS code? pre code { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment