My .css file doesnt work

Hi, I have issues. I have tried to look at the community thread but don’t seem to find any.

Here is the screenshot

may I know why?

Hi @cinowini

Welcome to the Frontity community. Great to see that you’re trying out Frontity.

You’re importing your CSS from Header.css but not storing it in a variable that you can reference. You need to do something like this:

import bootstrapCss from 'bootstrap/dist/css/bootstrap.min.css';
const BootstrapStyles = () => (
  <Global styles={css(bootstrapCss)} />
);

The above code snippet is from this file in this repo in case you want to dig in to this further.

Hope this helps.

2 Likes

Thank you so much @mburridge . It really helps me a lot :pray::pray::pray:

1 Like