Search code examples
htmlcss

External CSS stylesheet link failure


I am having this issue here:

http://arflux-rpg.com/game/index.php

On line 5:

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

The stylesheet exists (and is populated in correct syntax), I am linking correctly, and yet the styles fail to apply.

EDIT: Removed clickability of link as it's generating Google malware warning.


Solution

  • You actually mean to link to

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

    Starting your url with / will treat it like an absolute path from your domain, without the slash it treats it as a relative path from the current directory.