I have a div/icon (#user-initials) floated to the left of two other divs: .employee-name and .status.
If the .employee-name line happens to consist of two lines, the .status div gets pushed to the left side, underneath #user-initials. This works fine.
What I'm trying to do is keep the original spacing on top of .status that it had from .employee-name (11px). Once it's below the floated item, however, its margin gets cut to about 6px. See screenshot below for a better idea:
Fiddle: https://jsfiddle.net/kfjtnk9r/1/
.container {
width: 220px;
background-color: #fff;
}
.user_img_color,
.user_img_color_large {
background: #8aa943;
border-radius: 40px;
color: #fff;
float: left;
font-size: 15px;
height: 40px;
line-height: 40px;
text-align: center;
width: 40px;
z-index: 1;
margin-right: 10px;
}
.employee-name {
word-wrap: break-word;
}
.status {
margin-top: 4px;
}
.welcome-message {
margin-top: 10px;
font-size: 11px;
line-height: 15px;
}
div.status-indicator {
display: inline-block;
height: 8px;
width: 8px;
content: " ";
line-height: 14px;
background: #f5c002;
border-radius: 8px;
margin: 0 2px 0 0;
vertical-align: middle;
}
div.status-message {
display: inline-block;
font-size: 11px;
line-height: 14px;
white-space: nowrap;
vertical-align: middle;
}
<div class="container">
<div class="clearfix">
<div id="user-initials" class="inline-block">
<div class="user_img_color user_img_color-pending">TH</div>
</div>
</div>
<div class="employee-name">Name Namington</div>
<div class="status">
<div class="status-indicator status-indicator-complete"></div>
<div class="status-message">Status Message</div>
</div>
<div class="welcome-message">
Welcome message Welcome message
<br>Welcome message Welcome message
</div>
</div>
Any help would be much appreciated... I've tried everything.
Edit: added better screenshot image