Tuesday, September 13, 2016

AtoZ CSS Screencast: Enabled Pseudo-class

There’s a number of pseudo-classes in CSS.

These pseudo-classes help us style different states and target specific elements based on their relationship or position to other elements.

The :enabled and :disabled pseudo-classes style form elements that can or cannot be filled in or selected.

An enabled element is one that can be clicked, selected, receive focus or accept text input - a disabled element is one that cannot.

Elements are enabled by default but can be disabled using the disabled attribute in HTML.

Enabled / Disabled form fields

The user agent provides some default styling for disabled elements. Let’s take a look…

Continue reading %AtoZ CSS Screencast: Enabled Pseudo-class%


by Guy Routledge via SitePoint

No comments:

Post a Comment