r/nekoweb • u/katanaism • 2d ago
Solved!! help with css plspls
so i used a layout generator to start off since this is my first time making something more official, i used petrapixels layout generator!!! i put both parts of the code into their respectable files, the html going into the index.html file & the css going into the style.css file but when i view my website the style parts don’t seem to be applied correctly and im so confused!!! 😭 i can’t figure out what it is i did wrong. i’ve tried a lot and at one point ended up accidentally deleting both my index html and style css files but i made new ones -_-
i included pictures of what the website SHOULD look like, and how it’s coming up. i’ll include a link to it as well. i just need help figuring this issue out :/ pls plss thank u


7
u/asartalo 1d ago edited 1d ago
On your HTML file, the URL you used for including the css file is incorrect:
Change "html/cookietin.nekoweb.org/style.css" to "https://cookietin.nekoweb.org/style.css" or better yet "/style.css" as in:
You also have some URLs used in
hrefattributes that probably need fixing as well like the one for the favicon one. That one points to a file on your local PC instead of the web server it is supposed to be hosted.3
u/projectflamejewel 1d ago
In the HTML head, the link to your stylesheet is mistyped, which is why it's not being used.
But since you're linking to one of your own files, you should just use a relative link, instead, since you won't have to change anything if your domain name changes.