Glitch unexpectedly changing order of code

Hi everyone!
I’m having a little problem using Glitch:
I have the following code:

But this is what loads on the website:
image

Glitch unexpectedly changes the order of the style. What’s happening?

PS: if you like the post, please :heart: it

1 Like

Hey. So that could be a “glitch” in the editor, but I haven’t seen an asterisk before :not before. What happens if you remove it?

Hi there - can you share your project? If what’s happening in the editor is not showing on your page, it could be the build process or perhaps a bug. If the project is private, send an email stating it to support@glitch.com and we’ll look into it!

Hi, I think the asterisk is a wildcard for selecting all the elements in the DOM, and in this case it would be “all elements in the page that are not pre, #data, code, h1-h6”.

1 Like

I tried reloading the glitch editor and everything worked. Thanks :slight_smile: