I have the following:
I don't want to break the tags, so I specified the white-space: nowrap
option to the span. However, now I have the following problem: the line doesn't break at all.
How can I fix this?
Relevant HTML:
<td class="tags-column"> <span class="library-tags"><i class="fa fa-tag"></i> test</span> .... </td>
Add the following style to .library-tags
:
.library-tags {
display: inline-block;
float: left
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.