157 of 313 menu

The enabled pseudo-class

The enabled pseudo-class specifies styles for an active input. By active we mean the input that does not have the disabled attribute.

Syntax

input:enabled { }

Example

Let's apply styles for the active input:

<input> <input disabled> input:enabled { border: 1px solid green; box-shadow: 0 0 3px green; }

:

See also

  • the disabled pseudo-class
    that sets styles for an inactive input
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline