Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

My CSS's wont apply to my application rendered through zappa\express\node.js

My CSS's wont apply to my application rendered through zappa\express\node.js

Problem

A copy of my code is here http://pastebin.com/jcLRCrQr

Everything loads fine and the CCS sheets resolve, the javascript\coffescript files load and work correctly, however the styles fail to apply

a wierd thing is when i access the css files directly i.e /lib/css/bootstrap.css they do not come out formatted, infact its as if all the whitespace has been stripped out.

I have tried this in firefox and chromium and get the same issue.

any help would be greatly appreciated.

Problem courtesy of: Raadad

Solution

Ok i figured it out , thanks to all that had a go.

the content type had to be set on the response for each .css file

i.e res.contentType "css"

Solution courtesy of: Raadad

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

My CSS's wont apply to my application rendered through zappa\express\node.js

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×