Created
October 9, 2017 07:12
-
-
Save techxdeveloper/0d137b4824aaaba88ca9cbd506cb69a5 to your computer and use it in GitHub Desktop.
CSS Psuedo Class Selector (:enabled and :disabled)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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