I am currently experiencing an issue with word-wrapping in my category names when there are two words separated by a space.
Below is the CSS code snippet:
.post-item .cat {
height: 25px;
display: inline-block;
background: #CC0000;
font-size: 11px;
padding-left: 10px;
color: #FFF;
line-height: 23px;
position: relative;
float: right;
margin-left: 10px;
margin-top: 10px;
}
The problem I am facing is that the category name is displayed on 2 lines instead of one.
Desired display:
picture news
Actual display:
picture
new
For example purposes: