Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kristi Mingal
817 PointsContacts don't split into 2 columns
Contacts page won't split into 2 columns when browser is extended and there is no left margin
Responsive CSS
@media screen and (min-width: 480px) {
/*********************************************** TWO COLUMN LAYOUT **********************************************/
#primary { width: 50%; float: left; }
#secondary { width: 40%; float: right; }
}
/*********************************************** PAGE: PORTFOLIO ***********************************************/
#gallery li { width: 28.3333%; }
#gallery li:nth-child(3n+1) { clear: left; }
/*********************************************** PAGE: ABOUT ***********************************************/
.profile-photo { float: left; margin: 0 5% 80px 0; }
}
@media screen and (min-width: 660px) {
/*********************************************** HEADER ***********************************************/
nav { background: none; float: right; font-size: 1.125em; margin-right: 5%; text-align: right; width: 45%; }
#logo { float: left; margin-left: 5%; text-align: left; width: 45%; }
h1 {
font-size: 2.5em;
}
h2 { font-size: 0.825em; margin-bottom: 20px; }
header { border-bottom: 5px solid #599a68; margin-bottom: 60px; }
}
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/normalize.css">
<link href='http://fonts.googleapis.com/css?family=Josefin+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/reponsive.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
<a href="index.html" id="logo">
<h1>Kristi Mingal</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html" class="selected">Contact</a></li>
</ul>
</nav>
</header>
<div id="wrapper"></div>
<section id="primary">
<h3>General Information</h3>
<p>I am working on my education in order to be employed in the tech industry. If you have any questions, please don't hesitate to contact me!</p>
<p>Please call or use email to contact me. Otherwise, Twitter can also be used.</p>
</section>
<section id="secondary">
<h3>Contact Details</h3>
<ul class="contact-info">
<li class="phone"><a href="tel:589-6268">589-6268</a></li>
<li class="mail"><a href="mailto:kristimingal@att.net">kristimingal@att.net</a></li>
<li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=kbhm1850">@kbhm1850</a>
</ul>
</section>
</div>
<footer>
<a href="http://"twitter.com/kbhm1850"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
<a href="http://"facebook.com/kristina.mingal"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>Ā© 2015 Kristi Mingal.</p>
</footer>
</body>
</html>