I’m having an issue with inline-blocks breaking out of a parent w/ text. I’m sure it’s a quick fix, but I can’t seem to figure out how to get things to fill naturally.
this is what it looks like

the text has a red background to show you where the box is and how it’s floating outside of it’s constraint. Here’s what the code looks like.
<div class="comment-box">
<a class="comment-owner-link"><img src="user-img" /></a>
<div class="comment">comment info goes here</div>
</div>
and the css is pretty straight forward
.comment-box {
display: block;
margin: 8px 8px 0 8px;
white-space: nowrap;
}
.comment-owner-link {
display: block;
float: left;
position: relative;
width: 27px;
height: 27px;
}
.comment-owner-link img {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
.comment {
display: block;
overflow: hidden;
margin: 0 0 0 5px;
word-break: break-all;
white-space: normal;
}
any ideas on how to fix this up? or what’s going on?
changed these two classes to suit your needs — u need to set the width