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
Carolyn Dallas
218 PointsWorking with Grids Video: CSS Not Working
I was working through the video "Working with Grids" by Nick Pettit, but my webpage is not loading the CSS properly. (I.e. my container class should point my page to be centered with a width of 1000px, but instead, the text and pictures hug the left hand side of the page.) I'm assuming I typed the code incorrectly. Can't find where I went wrong. My code can be viewed via CodePen HERE: http://cdpn.io/fqEwx
Feedback is welcomed and appreciated!
9 Answers
Kevin Korte
28,149 PointsI can't see any of your code with that link, it just takes me to your text on a white page with no styling.
John Satterfield
13,695 PointsKevin Korte if you click "Edit This Pen" at the bottom, it brings up the area of coding.
Carolyn Dallas I am unable to view any CSS, the only coding you added was the html portion without adding any CSS values except the linked pages - which we have no access too. Are you able to add the CSS properties as well?
Kevin Korte
28,149 PointsJohn Satterfield I didn't see that, awesome thanks!
And that's all I saw too! Just linked css.
John Satterfield
13,695 PointsThe HTML is a little messy as well; I will be uploading a new HTML document for you to use Carolyn Dallas
You are very welcome Kevin Korte ! Glad I could be of assistance :)
John Satterfield
13,695 PointsCarolyn Dallas The following code is going to look the same but I have made a few changes to make the page easier to follow. There were some coding mistakes I found along the way that could have affected your overall layout in the end.
Carolyn Dallas
218 Points@ John Satterfield: thanks for your help! I attached two CSS stylesheets to my CodePen. Here's my CodePen link: http://codepen.io/cdallas/pen/Fjtnw
Sorry I didn't include the CSS. Wasn't aware I needed to. Thought it would automatically attach in HTML if I pointed to it in my code. Confused how I misunderstood that. (Clarification?) Guess I have a lot to learn :).
I'll keep working on my code. Additional feedback is welcomed!
John Satterfield
13,695 PointsI take it your code is working correctly now... It looks as though when I few your codepen. If I am mistaken please let me know. I'm glad I could help you so far, and if you ever need anything else, just take me in your new post with your question. :)
Carolyn Dallas
218 PointsMy CSS is working in CodePen (thanks John Satterfield!), BUT I still can't figure out how to make it work in my code editor, Sublime. Does anyone have any pointers for getting CSS up and running in Sublime?
John Satterfield
13,695 PointsJust to be sure, is the path to your css file correct in your html file? If it is, I will check common issues with sublime and linking external files.