Search code examples
htmlcsschrome-dev-editor

How to link external CSS stylesheets on a Chromebook


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?


Solution

  • 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.