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

General Discussion

Linking CSS

hello, I am having trouble linking my CSS to my HTML. I am using "TextMate" as my HTML text editor because I don't have the most recent mac software. I can't seem to link my CSS to my html. Also none of the images show up in my browser. I am using firefox.

Thanks!

16 Answers

@Dan, can you post the code you are using to link to the CSS file as well as the code you use to link to the images?

Please post the code you are using here.

Remember the forum using markdown so indent each line of your code so it will be formatted properly.

Also, if this is related to a particular code challenge, let us know which one.

I am trying to post the code but the HTML Is not showing up...?

@Dan - There's no code in your post, remember to indent your code so the forum formats it properly.

I am trying to post the code but the HTML Is not showing up...?

Here's an example of how to format code:

<p>This is example code</p>

I am aware of how to format code. I am copying and pasting my code used to link the CSS to HTML, but nothing is showing up when I save the comment....(thank you for taking the time to help me by the way)

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

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

figured it out ^ didnt know what "markdown" was

@Dan - Is the CSS file named normalize.css in a folder named css?

Here's a quick primer on absolute and relative paths

Yes, the folder is called css and is on my desktop.

I'm almost guaranteeing this is a path issue.

Dan, what is the folder structure for this project?

Hey Dan it should read "type= text/css" replace the dot with a forward slash

@Kerel - Good catch! I totally missed that.

@Dan - When you are replying to a post, or forming a new post, look below the box you're typing in as you should see a small line of text that reads...

"You can format your post with Markdown. If you need a Markdown Cheatsheet, we've got you covered."

Click the blue hyperlink text to see a cheatsheet of commands to format your post. You probably have already caught that since you were able to post your code, but I figured I'd point that out just in case :)

Also, though we've been guessing at an answer :) I'm pretty sure the TH community is right in suggesting what is wrong is the filepath you specified for the "type" of file it is.

Try @Karel 's suggestion Hey Dan it should read "type= text/css" replace the dot with a forward slash

If you're still having problems email me directly at help@teamtreehouse.com :) Please include a link to something like http://codepen.io/ or JSFiddle.

Don't know what JSFiddle is? Don't worry, find out here: http://css-tricks.com/seriously-just-make-a-jsfiddle/

Hope this helps :)

To add to what @Elizabeth said, the guy who writes css-tricks.com actually made a better more awesome version of JSFiddle called codepen.io

Here's a great step-by-step tutorial on how you can help us help you by posting a "working" example of your code.