Chapter 3

Getting Stylish with CSS

IN THIS CHAPTER

Bullet Understanding CSS and its structure

Bullet Formatting text size, color, and style

Bullet Styling images

Bullet 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 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, you'll learn basic CSS structure and then the CSS rules to style your content. Finally, you'll see how to apply these rules to your websites.

What Does CSS Do?

CSS styles HTML elements with greater control ...

Get Coding All-in-One For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.