Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jatinder85/10941885 to your computer and use it in GitHub Desktop.
Save jatinder85/10941885 to your computer and use it in GitHub Desktop.
A Pen by Jatinder Assi.
<div class="container elem">
<nav class="elem elem-red">
<span class="label">&lt;nav&gt;</span>
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">Taco Menu</a>
</li>
<li>
<a href="#">Draft List</a>
</li>
<li>
<a href="#">Hours</a>
</li>
<li>
<a href="#">Directions</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
<span class="endlabel">&lt;/nav&gt;</span>
</nav>
<section class="elem elem-green">
<span class="label">&lt;section&gt;</span>
<p>
Now when you resize your browser it's even cooler than ever!
</p>
<span class="endlabel">&lt;/section&gt;</span>
</section>
<section class="elem elem-green ipsum">
<span class="label">&lt;section&gt;</span>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet, nulla et dictum interdum, nisi lorem egestas odio, vitae scelerisque enim ligula venenatis dolor. Maecenas nisl est, ultrices nec congue eget, auctor vitae massa. Fusce luctus vestibulum augue ut aliquet. Mauris ante ligula, facilisis sed ornare eu, lobortis in odio. Praesent convallis urna a lacus interdum ut hendrerit risus congue. Nunc sagittis dictum nisi, sed ullamcorper ipsum dignissim ac. In at libero sed nunc venenatis imperdiet sed ornare turpis. Donec vitae dui eget tellus gravida venenatis. Integer fringilla congue eros non fermentum. Sed dapibus pulvinar nibh tempor porta. Cras ac leo purus. Mauris quis diam velit.
</p>
<span class="endlabel">&lt;/section&gt;</span>
</section>
</div>

Responsive Design Question (5 Point)

Responsive Design Question: Make one column layout with all nav links in single line when browser is < 600px. And make two column layout when browser is >= 600px

A Pen by Jatinder Assi on CodePen.

License.

/*
Write CSS for Responsive Design Layout which meets the following conditions:
- Has one column layout with all the nav links in single line when browser is < 600px.
- Has two column layout when browser is >= 600px
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment