Getting Stylish with CSS
IN THIS CHAPTER
Understanding CSS and its structure
Formatting text size, color, and style
Using CSS in three different contexts
“Create your own style … let it be unique for yourself and yet identifiable for others.”
— ANNA WINTOUR
The website code examples I show in the preceding chapters resemble websites you may have seen from a previous era. Websites you browse today are different, and they have a more polished look and feel. Numerous factors enabled this change. Twenty years ago you might have browsed the Internet with a dial-up modem, but today you likely use a very fast Internet connection and a more powerful computer. Programmers have used this extra bandwidth and speed to write code to further customize and style websites.
In this chapter you discover modern techniques to style websites using Cascading Style Sheets (CSS). First, I discuss basic CSS structure and then the CSS rules to style your content. Finally, I show you how to apply these rules to your websites.
What Does CSS Do?
CSS styles HTML elements with greater ...