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 not working

when i add the grid class and omega, they don't work. My code:

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head>

<body> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>

Can't see your code. Could you stick it in a codepen.io use the html part for html and then css in the next section. Then post a link here and would be happy to help.

here's my code: https://gist.github.com/anonymous/8236875

None of my images move around when i add the css to link into my html with the div tags. It just stays the same.

2 Answers

Make sure that

```<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">

is written correctly, underneath 

```<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen">

my href is lining to the css file. It seems to be ok.

Marc Johlic
Marc Johlic
1,075 Points

Unless CodePen is throwing something off, the code you show there does not match the code shown in the lesson. I don't see normalize.css or grid.css linked to in your html code. Try taking a closer look at that.

As well as including the .CSS extension when linking a CSS file. The style.css in the code shown seems to be missing the extension.

all sorted, i switched the code to the mac and changed the filepaths around. Seems to be working now.