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
Robert Kooyman
4,927 PointsCSS seems to be broken
Hi,
All of a sudden my css seems to be not loading onto my html file when I hit preview. I did not change anything (that I know of), but only the html layout is shown. (abstract below) Any help would be amazing. Thanks.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> Robert Kooyman | Creater</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Vollkorn:400,700,400italic|Martel+Sans:400,900,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body>
/************* GENERAL
***************/
body { font-family: 'Martel Sans', sans-serif; }
wrapper {
max-width: 940px; margin: 0 auto; padding: 0 5%; }
a { text-decoration: none; }
img { max-width: 100%; }
h3 { margin: 0 0 1em 0;
3 Answers
Janel Y
131 Pointsmight be b/c you're missing a closing bracket on h3?
Moderator Edited Moved this from a Comment to an Answer and marked "Best Answer" instead of the reply to this answer.
Robert Kooyman
4,927 PointsWhoo thanks a lot! I did not know that a missing } in an element would disable the entire CSS file. Is this always the case? If so; why?
Thanks Janel Y! You saved my day!
Janel Y
131 Pointsno problem. glad it was just the bracket and not something more complicated!