Add custom CSS to your WordPress website

To add custom css, select the Appearance > Customize option from the admin dashboard, and then Additional CSS. Custom CSS is very useful for applying slight tweaks to the appearance of your website without having to edit any of the theme files. These custom rules are applied after the main CSS files of the theme … Read more

Commenting your code

Comments provide useful context to your code so you and other developers can better understand the purpose of that code upon review. Comments can be used to provide information about a line of code, such as the intended function and possible inputs and outputs. Comments can also be used to hide code from being executed … Read more

Centering an element

To center an element, apply and margin of auto. Alternatively, use a display of flex, with content center-justified or grid, with content placed in the center. There are several ways to center an element using CSS, and the best method to use depends on the given context. The simplest way to center an element is … Read more

Categories CSS

A better black background

The blackest black (#000) is not necessarily the best choice of black background because other elements on the page will lose the opportunity to cast shadows. Consider using a slightly lighter shade of black which will allow the blackest black shadows on elements in the foreground to appear. An option for such a background black … Read more