css - Long post title -


i work on project http://www.paulund.co.uk/create-polaroid-image-with-css everything's work fine except long post title ( wordpress ). original code:

.polaroid-images a:after {     color: #333;     font-size: 20px;     content: attr(title);     position: relative;     top:15px; } 

and added this:

white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; 

but text-overflow: ellipsis; not work... possible this? welcome.

adding display: block should remedy this.

.polaroid-images a:after {     color: #333;     content: attr(title);     display: block;     font-size: 20px;     max-width: 200px;     overflow: hidden;     position: relative;         top: 15px;     text-overflow: ellipsis;     white-space: nowrap; } 

fiddle


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -