O'Reilly logo

Teach Yourself VISUALLY™ HTML and CSS by Linda Wooldridge, Mike Wooldridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Creating Style Sheets

Looking for an easy way to apply complex styles to your Web page content? This chapter shows you how to use Cascading Style Sheets, or CSS, to assign formatting to your HTML documents and across your Web site.

Creating Style Sheets

Understanding Style Sheets 186

Create an External Style Sheet 188

Link to a Style Sheet 190

Add Comments to a Style Sheet 191

Create an Internal Style Sheet 192

Create a Class 194

Apply a Style with the DIV Tag 196

Apply a Style Locally 198

Apply a Style Using the ID Attribute 199

Understanding Style Sheets

You can use Cascading Style Sheets, or CSS, to exercise precise control over the appearance of your HTML documents. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required