Local CSS question for a middle school website design class

4 replies
  • WEB DESIGN
  • |
I'm teaching a basic website design class for 7 and 8th graders. We don't have a lot of resources so I'm using notepad on Windows 10 computers at the school. I can't seem to get a local (computer based) external css to work on a local webpage. I had the students place both on the desktop so the path wouldn't be a factor. Is there a security thing or something that prevents CSS from working on a local (computer based) webpage even if I have the external css in the same folder?

Thanks,
Rick
#class #css #design #local #middle #question #school #website
  • Profile picture of the author yukon
    Banned
    Try the code below.

    Code:
    <link rel="stylesheet" type="text/css" href="style.css">
    Assumes you have a style.css file in the same folder or in your case on the same desktop.
    {{ DiscussionBoard.errors[11089731].message }}
  • Profile picture of the author topnichewebsites
    Sounds to me that your call for the CSS is incorrect.

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

    Rename your CSS style.css and ensure that every page on your site has that call above in the header otherwise the CSS will not work on pages where there is no <link rel="stylesheet" type="text/css" href="style.css">

    Just launch the page and then view the source for the page see if you have <link rel="stylesheet" type="text/css" href="style.css"> on this page
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[11091310].message }}
  • Profile picture of the author kumar shivam
    which browser you are using??
    if its chrome or mozilla - press ctrl+shift+I then right click on refresh button and choose empty cache and hard reload. Should work.

    If not please paste the <head> part here.
    {{ DiscussionBoard.errors[11091734].message }}

Trending Topics