My CSS document doesn't change anything on my html doc

<!DOCTYPE html>
    <title>My Website </title>
  <link rel="stylesheet" type="text/css" href="mainstyle.css"/>
    <h1> computing student,musicain,graphic designer</h1>
      <li><a href="home.html">Home</a></li>
      <li><a href="CV.html">CV</a></li>
      <li><a href="Contact.html">Contact</a></li>
      <li><a href="Bio.html">Bio</a></li>

CSS: File is named: mainstyle.css

  background-color: red;

I followed how to link them but it still isn’t working


It works for me. Are the files in the same folder?


I’m sorry, this issue doesn’t really seem to be Atom/Electron related.


I’m using a MacBook Pro but the changes don’t appear when using the html preview-package ,and both the files are in the same folder. Any ideas what the problem is ?


That’s why I put it in #uncategorized.


You need to be precise about package names. Are you using atom-html-preview? Because I just tested in that and it works fine.


Yeh i have atom-html-preview installed


it still isn’t changing on the preview


I feel so stupid i have just figured it out , lol i must close the css file then the preview works. Thanks for the help much appreciated :smiley:


Are you sure it needed to be closed? Because the screenshot says that it’s not saved, and if it’s not saved, then the preview package can’t read the latest version of the file.


yeh you’re right thanks man really appreciate it