
Unlike some other CMSs or similar programs, WordPress doesn’t automatically cache your styles, so you may wonder why style changes you make don’t show up on your web page. Two obvious possible reasons could be that the browser is caching your styles (press ctrl-F5 to force the browser to refresh), or you’re using a plugin for page caching such as WP Super Cache (in which case you can just go into the plugin settings and delete the current cache).
But if neither of those approaches work, there’s one other possibility that’s so simple it’s easy to miss. If you create pages using WordPress’s rich text editor, the editor may automatically put some styles into your page. Every element can have only one class attribute, so if you add another one later in the tag, the browser will just ignore it. Therefore, remember to put every new class that should apply to the element into the existing list of classes for any element that already has a class attribute.