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
Shana HT
3,292 Pointshref with css, confused about naming file hierarchy
My file structure looks like this
mysite
index.html
static
style.css
in index, I want to do this:
<link rel="stylesheet" href="/static/style.css" type="text/css"/>
1 Answer
joleneoropilla
17,214 PointsYou got it almost right. Just remove the forward slash "/" before "static" like so:
<link rel="stylesheet" href="static/style.css" type="text/css">
joleneoropilla
17,214 Pointsjoleneoropilla
17,214 PointsHey Shana,
Is your
style.cssin thestatic` folder?