1

I'm currently testing to modify .htmls with Powershell. Which works fine. Only problem I'm having (for now) is, that the CSS appears to be empty after loaded.

FF Developer

Firefox shows, that the .css is loaded but in Firebug it says (roughly translated) "No style rules where defined. You can create rules"

Firebug

My head:

<head>
    <title>Phantom by HTML5 UP</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="assets/css/main.css" type="text/css">
</head>

I'm currently working on a Xampp.

Edit1: I tried with Firefox and Chrome

Edit2: main.css does contain code and I tried with another .css

J. Titus
  • 9,535
  • 1
  • 32
  • 45
Dave
  • 25
  • 5
  • 4
    Silly question, but the css file does contain code, right? – jrmullen Jul 22 '16 at 13:02
  • Do you have some CSS code in main.css? – ristapk Jul 22 '16 at 13:03
  • That's not a silly question at all. Should have mentioned it from the start: yes, it does contain code. – Dave Jul 22 '16 at 13:15
  • 2
    Does your CSS file contains ` – Justinas Jul 22 '16 at 13:24
  • did you try to open in new tab ? maybe the path is wrong, but xampp doesn't throw error – moped Jul 22 '16 at 13:24
  • `main.css` is loaded with a status of 304 (not modified) - If you're trying multiple times, try clearing the cache. You may fix your problem and not even know it. – J. Titus Jul 22 '16 at 13:27
  • Does the console show anything? – j08691 Jul 22 '16 at 13:30
  • What does your css file look like? – Mr. Meeseeks Jul 22 '16 at 13:33
  • @Justinas: it doesn't. I'm using a template created by s.o. else cause I'm mainly playing around with powershell. So posting the 3k row main.css wouldn't be helpfull ^^ But I get the same prob with a test.css containing only `h2 { font-size: 12px; color:red; }` @IE5Master @ J. Titus: didn't help – Dave Jul 22 '16 at 13:37
  • Is the Path correct? Did you try it with a leading slash? – The Dark Knight Jul 22 '16 at 13:50
  • @TheDarkKnight: Path should be correct. Developer Tool shows no error. I tried renaming the main.css without changing the path in the head and the Firefox development tool showed a 404. – Dave Jul 22 '16 at 14:17

0 Answers0