How Do I Edit CSS Classes in WordPress?

In WordPress, you can use classes to style different parts of a page or post. To add a class to a element, you use the class name, followed by a colon (:), and the name of the element you want to style. For example, to style all paragraphs with a blue border, you would use the class “blue”:

.blue {border: 1px solid blue;}

You can also use the shorthand version of the class, which is simply the name followed by a period (.).

For example, to style all paragraphs with a blue border, you would use the class “blue.”:.