Menu
Coddy logo textTech

Class 'bottom'

Lesson 18 of 31 in Coddy's 3D Card | Front-end Project course.

challenge icon

Challenge

Easy

Target class ‘bottom’:

  1. Set the display to Flex
  2. Set align-items to center.
  3. Set justify-content to space-between
  4. Set position to absolute
  5. Set the bottom, left, and right to 20 pixels. 
  6. Set padding 10px from top-bottom and 12px from right left

Add these properties at the end for a precise finish:

transform-style: preserve-3d;
transform: translate3d(0, 0, 26px); 

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 3D Card | Front-end Project