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 trial

CSS CSS Basics (2014) Basic Selectors ID Selectors

William Clements
William Clements
4,722 Points

Possible Bug In Code

As far as I can tell I have all of the coding exactly the same as it is described in the video, but I cannot get the red border from the div id, or the orange bottom in the footer id. Here's what I have coded in the stylesheet, and everything in the HTML document is exactly the same as in the video:

primary-content {

border: 3px solid red; }

main-footer {

padding-top: 60px; padding-bottom: 60px; border-bottom: solid 10px orange; }

William Clements
William Clements
4,722 Points

UPDATE: the issue magically went away around halfway through the next video as I started doing the secondary-content class coding. I don't know why this magically changed the footer id or the primary-content class, but it did. Just an FYI for anyone else who experiences this issue.

Make sure your code matches the video and keep going, because the issue may resolve itself in the next video (maybe slow loading times or something?)

1 Answer

Shawn Flanigan
PLUS
Shawn Flanigan
Courses Plus Student 15,815 Points

William: Glad it sorted itself out! Are you sure you were saving your changes before previewing? I find it's pretty easy to forget.

William Clements
William Clements
4,722 Points

I save after every change to code, so it couldn't have been an issue with that. I know I read a few other discussions where people had the same issues a few months ago. Still not sure what the issue was exactly, but at least everything is working now!

Shawn Flanigan
Shawn Flanigan
Courses Plus Student 15,815 Points

Nice. Good habit to get into. I'll try to take a look at the challenge later and see if I can figure out what's going on. Keep up the good work!