I'm trying to create a semantically correct HTML 5 web page utilizing CSS 3. I've created the below markup which exists at the root of my body
element. Applying display:table-cell
to both the aside
and section
elements causes them to column as I would like them to. However, I have no containing element to apply a display:table
to. Is it okay to use display:table-cell
if the element which it is being applied to is not contained within a display:table
? If not is there a better mechanism to create a column layout with these elements without using floats?
<aside>
<nav>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
</ul>
</nav>
</aside>
<section>
Content goes here
</section>