Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>Example</title> <style> select { font-size: 2em; padding: .5em; width: 60vw; margin: 3vw; } select:enabled { background-color: greenyellow; } select:disabled { background-color: silver; } </style> <select> <option value="1">Enabled Option 1</option> <option value="2">Enabled Option 2</option> <option value="3">Enabled Option 3</option> </select> <select disabled> <option value="1">Disabled Option 1</option> <option value="2">Disabled Option 2</option> <option value="3">Disabled Option 3</option> </select>
Preview