Menu
Coddy logo textTech

Style class btn

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

challenge icon

Challenge

Easy

Target class 'btn':

  1. Set padding and font size to 20px. 
  2. Set the border to 1px, solid, and color of your choice.
  3. Set the background color and the color of your choice.
  4. Set cursor to pointer

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