Here is some HTML code snippet:
<div class="title">
<span>Cumulative performance</span>
<span>20/02/2011</span>
</div>
This is the corresponding CSS:
.title
{
display: block;
border-top: 4px solid #a7a59b;
background-color: #f6e9d9;
height: 22px;
line-height: 22px;
padding: 4px 6px;
font-size: 14px;
color: #000;
margin-bottom: 13px;
clear:both;
}
In a jsFiddle linked here: open link to view
The issue I am facing is that the Title and Date are not aligned properly. Is there any solution to make the date align to the right? I attempted using float: right;
on the second <span>
but it affected the layout and pushed the date outside of the div container.