Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

8. Working with Style Sheets

8. Working with Style Sheets

In This Chapter

Creating an External Style Sheet

Linking to External Style Sheets

Creating an Embedded Style Sheet

Applying Inline Styles

The Importance of Location

Using Media-Specific Style Sheets

Offering Alternate Style Sheets

The Inspiration of Others: CSS

Before you start defining your style sheets, it’s important to know how to create and use the files that will contain them. In this chapter, you’ll learn how to create a style sheet file and then how to apply CSS to multiple Web pages (including a whole site), a single page, or an individual HTML element. You achieve these via three methods: external style sheets (the preferred choice), embedded style sheets, and inline styles (the least desirable).

You’ll learn how to create the content of your style sheets in the chapters that follow.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint