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
Laurence kite
11,768 PointsExtra Credit serving css files.
I am trying to amend the code written by Chalkers to serve the css file, and have separated the css rules into a files called style.css my idea is to read the css and use response.write(cssfileContents)
but using "text/css" as write head..
but not sure if this is how it should be done.
Adding this link to the header.html file does nothing ..
<link rel="stylesheet" type="text/css" href="/style.css">
Any direction would be appreciated..
1 Answer
Laurence kite
11,768 PointsI will do that I have it Woking now but it probably is not the best way to do it..
Gustavo Winter
Courses Plus Student 27,382 PointsGustavo Winter
Courses Plus Student 27,382 Points<link rel="stylesheet" type="text/css" href="/style.css"> // <-- Make sure the "/style.css" arent within another paste, if it is use namePaste/style.cssIf it doesnt help, you should make a snapshot with all the files, it will be more easier to help.