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

Chapter 11. Managing Style Sheets > Assigning Style Sheet Rules to an Individua...

11.3. Assigning Style Sheet Rules to an Individual Element

11.3.1. Problem

You want a single element to stand out by having its own style sheet rule.

11.3.2. Solution

Define an ID selector for a style rule and assign that same selector name to the id attribute of an element. An ID selector name is preceded by a hash mark (#), as in the following example:


  

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