1

I'm developing a website and I need to use external CSS stylesheets. The only drawback is I'm using a new Chromebook after migrating from Windows.

I'm using CDE, so how should I link an external stylesheet to an HTML file? To be more specific, how do I find the full file path of a CSS file on a Chromebook?

Bijan
  • 7,737
  • 18
  • 89
  • 149
  • @AMADANONInc. I've tried using the file path in CDE shown in properties, and I've tried uploading the file to the internet. –  Nov 13 '14 at 21:16

2 Answers2

2

For all of the noobs out there, I figured it out.

You have to link an external stylesheet (if on a Chromebook) using relative linking, so what you will want to do is this:

<link rel="stylesheet" type="text/css" href="name_of_stylesheet_in_same_folder_as_html.css">

Basically, keep your CSS file in the same folder as your HTML or Javascript file and it will most likely work when there is no standard full file path.

0

Can you view the css directly in the browser? If so, whatever url you're using should work. If not, perhaps something else is going on. Chromebook should be no different from any other browser.

AMADANON Inc.
  • 5,753
  • 21
  • 31
  • Turns out it is. It gives me something like this when I open it in a browser: http://127.0.0.1:51792/my-little-octocat/index.html –  Nov 13 '14 at 21:26
  • You need to upload it to some sort of hosting first. I have used google drive before, and it works rather well. – Ian Hazzard Nov 13 '14 at 21:47