Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

disabled

The disabled UI element states pseudo-class selector will target disabled HTML form elements. Form elements are enabled by default unless they have the HTML "disabled" attribute set on them.
Syntax Logicelement:disabled { property_list }

CSS Code Example

<style> input:disabled { opacity: 0.5; } </style> <p><input type="radio" name="rg1"></p> <p><input type="radio" name="rg1" disabled></p> <p><input type="radio" name="rg1"></p>

CSS

Selectors

universaltypecompoundclassidnotattributedescendantchildadjacent siblinggeneral siblingfirst childlast childonly childfirst of typelast of typeonly of typenth childnth last childnth of typenth last of typeemptyrootfirst linefirst letterbeforeafterlinkvisitedhoveractivefocustargetenableddisabledcheckedlang