What I desire:
My current accomplishment:
I successfully floated both DIV tags side by side and also experimented with tables. My goal is to have the HR line fill the remaining horizontal space that the title does not occupy.
However, I prefer not to use fixed nor percentage widths.
I have exhausted most of my knowledge trying different approaches such as table cells. The effect I am aiming for is akin to using display: inline with headers, where it prevents full width expansion and allows the table to wrap around it, leaving the HR table cell to occupy the rest of the row.
Please find below a snippet of code which only includes relevant parts pertaining to tables:
.certificatetitle { font-weight: 100; font-size: 16px; }
.collapsed .line { height: 40px; }
.line { height: 40px; }
.line hr { color: #f69f1a; background-color: #f69f1a; border-color: #f69f1a; height: 1px; }
<table class="certificatebar" height="40px">
<tr>
<td class="certicon" width="30px"></td><td class="certificatetitle">Microsoft Office</td><td class="line"><hr /></td><td class="dropdown" width="20"></td>
</tr>
</table>