Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techxdeveloper/0d137b4824aaaba88ca9cbd506cb69a5 to your computer and use it in GitHub Desktop.
Save techxdeveloper/0d137b4824aaaba88ca9cbd506cb69a5 to your computer and use it in GitHub Desktop.
CSS Psuedo Class Selector (:enabled and :disabled)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Psuedo Class Selector (:enabled and :disabled)</title>
<style>
h1 {
color: #00bdc4;
border-bottom: 1px solid #bdbdbd;
padding-bottom: 20px;
}
input:enabled {
background: #00bcd4;
color: #f5f5f5;
}
input:disabled {
background: #212121;
color: #f5f5f5;
}
</style>
</head>
<body>
<div>
<h1>CSS Psuedo Class Selector (:enabled and :disabled)</h1>
<form action="">
First Name: <input type="text" value="Bruce"><br>
Last Name: <input type="text" value="Wayne"><br>
Code Name: <input type="text" disabled value="Batman">
</form>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment