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 trialvamosrope14
14,932 PointsUnexpected error message please help
.
2 Answers
Liam Clarke
19,938 PointsHello
You are missing a closing curly brace on the first header selector
approximately line 77
error
/* HEADER & FOOTER -------------------------------- */
header {
height: 460px;
background: linear-gradient($color-bg-light, $color-bg), url('../img/bg.jpg') no-repeat;
background-blend-mode: multiply;
background-size: cover;
position: relative;
.main-nav {
margin-top: 1em;
li {
display: inline-block;
margin: 0 0.65em;
}
a {
color: $white;
font-size: 0.85em;
text-decoration: none;
text-transform: uppercase;
padding: 0.5em;
}
}
Solution
/* HEADER & FOOTER -------------------------------- */
header {
height: 460px;
background: linear-gradient($color-bg-light, $color-bg), url("../img/bg.jpg") no-repeat;
background-blend-mode: multiply;
background-size: cover;
position: relative;
.main-nav {
margin-top: 1em;
li {
display: inline-block;
margin: 0 0.65em;
}
a {
color: $white;
font-size: 0.85em;
text-decoration: none;
text-transform: uppercase;
padding: 0.5em;
}
}
}
tomd
16,701 PointsLooking at your scss I cant see anything that says width: 45%
. Are you sure you've included all of your code in this question?