We'll start with devices that range from 480 pixels wide up to 800 pixels. This range includes the iPad when it's held in portrait orientation:
@media (min-width: 480px) and (max-width: 800px) { header{ height: 100px; } #mainNav{ top:100px; width: 300px; } #mainNav li{ float:none; clear:both; } #container2{ background-position: 70% -90px; } .home article.post h2{ font-size: 150%; margin-bottom: 10px; } .home article.post .entry-content,article.post .entry-meta, article.post a.more{ display:none; } .content.left.two-thirds, .sidebar.right.third{ float:none; clear:both; margin: 0 auto; width:98%; } .sidebar div{ width: 30%; margin: 1.2%; float:left; } .home .content.left.two-thirds{ margin-top:180px; } }
We added some styling to adjust the layout on tablet devices. Specifically:
#mainNav
list items li
and set them to list verticallyarticle
content, only displaying the titles .sidebar
element's right float.sidebar
to float: left
of each other, creating a three-up box spread under our main article headlines