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 trialSef Sheek
2,356 PointsRearranged CSS and now my name and title are no longer centered; have shifted to the left. How should I fix this?
Title basically says is it all. I rearranged my CSS by adding comments and now the name and the word "designer" have shifted over to the left. How should I fix this issue? Here's my code if anyone can see what I might've done. Thanks!
/***********
GENERAL
*/**********
#wrapper {
max-width:940px;
margin:0 auto;
padding:0 5%;
}
a {
text-decoration: none;
}
/***********
Heading
*/**********
#logo {
text-align:center;
margin:0;
}
/***********
Colors
*/**********
/*Site body */
body {
background-color:#fff;
color:#999;
}
/*Green Header*/
header {
background:#6ab47b;
border-color:#599a68;
}
/*Nav background on Mobile*/
nav {
background:#599a68;
}
/*Logo Text*/
h1, h2 {
color:#fff;
}
/*links*/
a {
color:#fff;
}
/*nav link*/
nav a, nav a:visited {
color: #fff;
}
/*Selected nav link color*/
nav a.selected, nav a:hover {
color:#99ff99;
}
3 Answers
Gregory Ledger
6,116 PointsIt looks like you are commenting out #logo selector. CSS comments start with /* and end with */ You don't have any */ end comment characters.
Ahiro Guzman
4,305 PointsLooks like you might have left this portion of the code somewhere at the bottom of your file when you rearranged it. It is supposed to be right before the #logo selector.
header {
float: left;
margin: 0 0 30px 0;
padding: 5px 0 0 0;
width: 100%;
}
Sef Sheek
2,356 PointsThanks! I was able to fix my issue,