Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

How come my name and the title of my occupation aren't aligned?

The h1 and h2 in on my about page aren't aligned. They are to the left, but the title of my job is not aligned beneath my name. I'll see if I can display my code.

@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(4n) { clear: left; }

/************************************************* PAGE: ABOUT **************************************************/

.profile-photo { float: left; margin: 0 5% 80px 0; }

}

@media screen and (min-width: 660px) {

/************************************************* PAGE: 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; }

}

@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(4n) { clear: left; }

/************************************************* PAGE: ABOUT **************************************************/

.profile-photo { float: left; margin: 0 5% 80px 0; }

}

@media screen and (min-width: 660px) {

/************************************************* PAGE: 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; }

}

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ayaz Sadiq | Concierge</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width-device-width, initial-scale=1.0"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Ayaz Sadiq</h1> <h2>Concierge</h2> </a> <nav> <ul> <li><a href="index.html"> Portfolio</a></li> <li><a href="about.html" class="selected">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <img src="img/nick.jpg" alt="Photograph of Nick Pettit" class="profile-photo"> <h3>About</h3> <p>Hi, I'm Ayaz Sadiq! This is my design portfolio where I share all of my favorite work. I'm NOT the person in this picture. He is a man named Nick Pettit. I don't have a profile picture. As soon as I know how to make one, then I'll upload one on my page. I'm learning how to design a webpage plus I want to learn how to program in code. I'm learning how to code as a hobby before I turn it into an occupation.</p> <p>If you would like to follow me on Twitter, my username is <a href="http://twitter.com/Ayaz627">@Ayaz627</a>.</p> </section> <footer> <a href="http://twitter.com/Ayaz627"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="http://facebook.com/ayaz.sadiq.3"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a> <p>© 2016 Ayaz Sadiq.</p> </footer> </div> </body> </html>

2 Answers

Please post your code following the guide below the Post Answer Button. it Says: Reference this Markdown Cheatsheet for syntax examples for formatting your post. click on Markdown Cheatsheet.

So I can better help you. thank you.

Frederico-I can't put my code in the markdown cheatsheet. When I click on markdown cheatsheet, a window pops up with rules and guidelines.