CSS is a style sheet language that became a de facto standard in web development for describing the presentation aspect of a web page. It separates presentation and content, which greatly simplifies design and allows us to have a unified style through a whole page and site. CSS is mainly responsible for aspects such as fonts, color, heading styles, margins, padding, and other layout properties.
In this chapter, we will study how JavaFX technology innovatively used CSS to style not web but Java applications. We will cover the following topics:
- Introduction to CSS
- JavaFX specifics
- Using styles
- Advanced CSS syntax
- Benefits of using CSS
- Advanced JavaFX CSS API
At the end of the chapter, we will return to the Clock sample and learn how to style it with CSS.