active Selector

active Selector
CSS active Selector reference
The CSS active user action pseudo-class selector ( X:active { } ) is used to alter the style of an element at the time of user interaction, usually a click action. The active selector is most commonly used to change the way a menu item or button appears the exact instant it is clicked, and remains that style until the user releases their mouse button.
CSS CODE EXAMPLE
<!DOCTYPE html>
<style type="text/css">
.myClass:active {
    font-size:24px;
}
</style>
<p class="myClass">My paragraph content...</p>
<p>My paragraph content...</p>
Demo Hint: To see the effect of this click my first paragraph below and watch it grow.
 
My paragraph content...
My paragraph content...

0 Response to "active Selector"

Post a Comment