Cascading Style Sheets

Refresh the basic concepts of Cascading Style Sheets (CSS).

We'll cover the following

Before moving further to begin the real work of our Thyme Wizards application, let’s review CSS’s basic concepts.

CSS concepts

Every web application needs CSS, which is short for Cascading Style Sheets, as do our Spring Boot applications.

The easiest way to add CSS to a Spring Boot application is by adding our CSS file in the src/main/resources/static directory. The embedded Tomcat container will serve anything present in the directory.

To try this out, let’s make a CSS file under the given directory:

Get hands-on with 1000+ tech skills courses.