Sunday 26th of April 2015 10:55:40 PM

Book Home

Cascading Style Sheets: The Definitive GuideSearch this book

7.4.1. Borders with Style

We'll talkabout the border's style first because it is the most importantpart of a border. It's most important not because it controlsthe appearance of the border, although it does do that, but becausewithout a style there would be no border at all.

border-style

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: Y

There are no index entries for this letter.


Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z


Library Navigation Links

Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.

While some other pseudo-classes, like :link and:visited , are constrained to theA element in HTML, the same is not true of:hover. User agents could, in theory, allow theassignment of hover styles to any element, like this:

P:hover {font-weight: bold;}

Therefore, if you want to make sure your hover styles are appliedonly to your hyperlinks, you would need to use this rule: