diff --git a/public/index.html b/public/index.html
index e00d32dd0946fcf74b2eb654d5ca20dced94264a..2a057e093014f9c686707fa54b35e3ca8924587f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -3,7 +3,7 @@
 <head>
 <meta charset= "utf-8">
 <title>Learn Frontend WebDev</title>
-<link rel='stylesheet' href='styles.css'/>
+<link rel='stylesheet' href='/public/styles.css'/>
 <h1>Welcome to my page!</h1>
 <p><a href="indexdark.html">Toggle dark mode</a></p>
 </head>
diff --git a/public/indexdark.html b/public/indexdark.html
index d7df1dcb1a52d12285e8c03ce99ead5302dde7d8..108add468dd67a65b4f99c16a8bd49e5f155eb8b 100644
--- a/public/indexdark.html
+++ b/public/indexdark.html
@@ -3,7 +3,7 @@
 <head>
 <meta charset= "utf-8">
 <title>Learn Frontend WebDev</title>
-<link rel='stylesheet' href='styles.css'/>
+<link rel='stylesheet' href='/public/styles.css'/>
 <h1>Welcome to my page!</h1>
 <p><a href="index.html">Toggle Light mode</a></p>
 </head>