html - wrap text within <li> using css -
i have ul containing bunch of li's. in each li there image , caption. li or image not have set width. want wrap text wide image above it. it's fiddle
<ul><li></li></ul>
i want text under image wrap width of image.
can help?!
you give fixed width li , use ellipsis text
.figures span { font-size: 12px; font-family: "book antiqua", "palatino linotype", georgia, serif; letter-spacing: 0.1em; display: block; width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
check fiddle
Comments
Post a Comment