I try to make a list of tasks that I create, and it is difficult for me to solve individual tasks. The main layout consists of the task and the patient’s name on the left, and the date and expired date on the right.
The problem starts when the content on the right overlaps the content on the left. In all browsers except IE 6 and 7, the content on the right just falls below the content on the left, for example.
Title Date Created
Patient Name
Date Overdue
In IE 6 and 7, the contents on the left and right are compressed, as if it occupied all the necessary space, even if it is not, for example
Title Date
Created
Patient Date
Name Overdue
Has anyone done a similar layout before and tell me how they solved it? Is there a better way to lay this out NOT with floats? Do you hate IE like me?
HTML CSS ( SASS) jsFiddle, .
<li class="task clear-fix">
<span class="task-title">{title}</span>
<span class="task-date secondary">{dateCreated}</span>
<span class="patient-name">{patientName}</span>
<span class="task-overdue-date">{dateOverdue}</span>
</li>
li.task {
.task-title,
.patient-name {
clear: left;
float: left;
}
.task-date,
.task-overdue-date {
clear: right;
float: right;
}
}
.clear-fix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clear-fix {
*zoom: 1;
}