Button States Set
CSS
Medium
2 views
Problem Description
Style default, hover, and active states for a meetcode button.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use :hover and :active.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
<style>
.btn { background: #0b5; color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; }
.btn:hover { background: #089a4a; }
.btn:active { transform: translateY(1px); }
</style>
</head>
<body>
<button class='btn' type='button'>Practice</button>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!