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> 

http://jsfiddle.net/g4hvaljc/

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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -