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; }
Comments
Post a Comment