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 trialSuliman Alhur
2,464 Pointswrapper <div id="wrapper">
although my main.css file linked properly with my index.html ,but can't see the effects of wrapper ?
index.html
</header> <div id="wrapper"> <section>
</footer>
</div>
</body>
main.css
a { text-decoration:none; {
wrapper {
max-width: 940px;
margin : 0 auto;
padding : 5%;
background:orange;
}
wrapper >>>> highlighted by red
1 Answer
Bianca Ene
3,908 PointsI see two problems :
the way you closed the a ( a { text-decoration:none; { should be a { text-decoration:none; } )
and don't forget to put the # in front of wrapper in main.css to indicate it is a div id
so basically you should have:
wrapper {
max-width: 940px; margin : 0 auto; padding : 5%; background:orange; }
Suliman Alhur
2,464 PointsSuliman Alhur
2,464 Pointsthank you so much>>
Bianca Ene
3,908 PointsBianca Ene
3,908 PointsI'm glad it worked.