Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- I cannot be focused.
- </div>
- <div tabindex="0">
- I am focusable.
- </div>
- div:focus {
- background: green;
- }
- div:active {
- color: orange;
- }
- div:focus:active {
- font-weight: bold;
- }
- <style type="text/css">
- input { font-weight: normal; color: black; }
- input:focus { color: green; outline: 1px solid green; }
- input:active { color: red; outline: 1px solid red; }
- </style>
- <input type="text"/>
- <input type="text"/>
Add Comment
Please, Sign In to add comment