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 trialDavid White
Courses Plus Student 2,248 Pointscss basics: div #wrapper
Looks like I got out of sync with the flow here. I went back one lesson and rewrote the code, and have had no luck getting back on track.
I took screenshots of my site and Nick's, and they don't match. (borders, and color primarily)
Where can I upload these images to help out potential answers?
-related to <div>
and naming of same element (<div id="wrapper">
, and the lesson took us into editing the .css file. Here's what I have there:
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
padding:0 5%;
background: orange;
}
But previously had:
#wrapper {
max-width: 940px;
margin: 0 auto;
}
If not mistaken, the last was supposed to line up image and text elements within the <div>.
Mine didn't, and I double-checked it, so now stuck.
Thanks in advance!
2 Answers
Jean Paiva
7,128 PointsIf you are using chrome, try the developer tool to see what is going wrong.
David White
Courses Plus Student 2,248 PointsVery nice idea, I will try that and let you know what I find.
- thanks!