Menu
Coddy logo textTech

Style class equal

Lesson 10 of 14 in Coddy's DOM Project - Calculator course.

challenge icon

Challenge

Easy

Target class ‘equal’:

  1. Set grid-column to span 3.
  2. Set the background color of your choice (not the same as other buttons).
  3. Add the below CSS code for hover effect:
  4. .btn:hover {
        opacity: 0.8;
    }

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Write HTML code here -->
        <script src="script.js"></script>
    </body>
</html>

All lessons in DOM Project - Calculator