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


Mohib Arsala
Mohib Arsala
7,123 Points

css link not working using cloud9

css link not working , while uploading the file to cloud9 and copy the index.html codes to ejs file here the problems comes out, in my local machine working fine?

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Worldwide Travel</title> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <link rel="stylesheet" href="style.css" type="text/css"> </head>

1 Answer

Hi Mohib

How are you uploading the files?

I have tested the cdn and they seem to work fine so I believe it's your style.css file which is the issue.

i dont know much about cloud9 but they do say they accept a .tar file, this can be done by running the command:

npm pack

You should note any relative file paths will have to be correct on the server too, you css for example, otherwise, I would recommend using an absolute file path.