Why isn’t my css code working?

If your website has a cache, then clear it. While you are developing, the best would be if you would just turn it off. If the problem isn’t that your code is not loading, then it is happening, because your css code isn’t strong enough. You should check out this documentation to see how you can make stronger css codes.