How do I use CSS with webui? #692
-
|
I'm using python to write my webui program. I wrote my HTML in a separate file, and I want to put my styling into a separate CSS file. I tried linking the CSS to the HTML like how I would in web development, and in theory, it should darken the background color. However, that's not what's happening. I tried multiple routes, such as writing a file handler, but nothing's working. I've linked the files in question down below, and here is the directory structure ("foo/" signifies a directory):
Any help is GREATLY appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Try Example : |
Beta Was this translation helpful? Give feedback.
you set the root to ui, that folder becomes the "base." You don't need to include "ui/" in the show() command anymore.