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. ...

Get Teach Yourself VISUALLY™ HTML and CSS 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.