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


Daniel Blom
Daniel Blom
331 Points

CSS files linking

Having problems with changing the background on the build a website project. can any one help with this? Thanks.

Post some example code, so we can see what you're doing wrong.

Daniel Blom
Daniel Blom
331 Points

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Daniel Blom | Graphic Design Protfolio</title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html"> <h1>Daniel Blom</h1> <h2>Graphic Desinger</h2>

I have created the .css file and i have places it in the css folder, however it dosnt seem to be linking for when i need to change the background.

2 Answers

To link an external stylesheet you can use the link tag inside of the head tag.

<DOCTYPE html>
<link rel="stylesheet" type="text/css" href="mystyle.css">
<title> Daniel Bloom | Graphic Design Portfolio</title>

Is this what you're trying to do?

Daniel Blom
Daniel Blom
331 Points

I am very new to all of this i have only recently just joined this site, im doing the how to build a website course and i have become stuck with the the .css folders not linking properly so my changes arnt being saved.

Please forgive any stupidness this is totally new to me