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?

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!

1 Like

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”.

2 Likes

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

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.