Now you'll add a rollover effect so that the background color of the navigation bar blocks change whenever the mouse pointer passes over one of the links. To add a rollover effect, add a new rule that contains the :hover pseudo-class.
|
ABOUT... |
|
About the :hover pseudo-class A pseudo-class is a means of affecting certain elements in an HTML document, based not on the HTML code of the document itself, but on other external conditions applied by the web browser. Pseudo-classes can be dynamic, in the sense that an element on the page may acquire or lose the pseudo-class while a user interacts with the document. The :hover pseudo-class affects a change in a formatted page element when the user holds the mouse over the element. For example, when the :hover pseudo-class is added to the .navigation class style (.navigation:hover) to create a new rule, all text elements that the .navigation rule formats change according to the .navigation:hover rule's properties. |
When you hold the mouse over any of the links, you can see the new rollover effect.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/using/gs_06_13.htm
Comments
No screen name said on Oct 17, 2005 at 11:35 AM : No screen name said on Oct 19, 2005 at 2:22 PM : No screen name said on Nov 1, 2005 at 7:05 AM : crystalattice said on Dec 5, 2005 at 10:48 PM : Mike Perciballi said on Dec 26, 2005 at 9:43 PM : Roaring mouse said on Jan 6, 2006 at 8:14 AM : No screen name said on Jan 7, 2006 at 3:40 PM : Carlos Miguel Hoover said on Jan 7, 2006 at 11:34 PM : Carlos Miguel Hoover said on Jan 8, 2006 at 12:10 AM : Carlos Miguel Hoover said on Jan 10, 2006 at 10:39 PM : Daniel490 said on Jan 19, 2006 at 8:03 PM : No screen name said on Feb 27, 2006 at 11:59 AM : Pam_i_am said on Apr 28, 2006 at 1:28 PM : SteveRI said on Aug 2, 2006 at 12:20 PM : No screen name said on Aug 7, 2006 at 4:43 PM : No screen name said on Aug 12, 2006 at 9:59 PM : No screen name said on Oct 30, 2006 at 12:59 PM : No screen name said on Feb 5, 2007 at 5:34 AM : Larry M Ray said on May 7, 2007 at 7:31 PM : Bring it on Baby said on May 20, 2007 at 2:48 PM :