Hello,
I’ve been working on a discord bot for some time now and have created a website for the commands available. I recently have attempted to add css to the site to make it appear nice however it keeps failing to load. Any help is appreciated.
Project: https://glitch.com/~ilct-discord-bot
Regards,
DeadClown49
Hi @DeadClown49,
Add <style>
into your html template and insert your css codes
or create a style.css file here and put your css codes in it
https://ilct-discord-bot.glitch.me/style.css
<link rel="stylesheet" href="/style.css">
Hey @DeadClown49, welcome to the Glitch forum!
In this case the issue you’re encountering is that the style.css
file isn’t being exposed to the internet by Express. You’re telling Express to render everything in the public
folder and to show views/index.html
when the app is requested, but your style.css
file isn’t being sent to the browser. If you move that file to the public
directory everything should start working as you expect it to.
Hope this helps!