<ul class="unlist clearfix">
<li class="clearfix">
<h3>List Item</h3>
<time datetime="2013-08-29"><span>29</span> Ags 2013</time>
</li>
<li class="clearfix">
<h3>List Item</h3>
<time datetime="2013-08-29"><span>29</span> Ags 2013</time>
</li>
<li class="clearfix">
<h3>List Item</h3>
<time datetime="2013-08-29"><span>29</span> Ags 2013</time>
</li>
</ul>
Currently displaying like this:
List Item
29 Ags 2013
List Item
29 Ags 2013
List Item
29 Ags 2013
I am trying to float the date "29 Ags 2013" to the left using the 'float:left;' property. However, it's not working as expected. I have tried setting <time>
to display:block;
but still no change.
After some testing, I realized that the date would float left if I switch the order of elements within each list item:
<li class="clearfix">
<time datetime="2013-08-29"><span>29</span> Ags 2013</time>
<h3>List Item</h3>
</li>
However, I prefer the <time>
element to be below the <h3>
, not above it.
Any suggestions on how to achieve this layout?