Menu
Coddy logo textTech

クラス 'bottom'

Coddyの「3Dカード | フロントエンドプロジェクト」コースのレッスン 18/31。

challenge icon

チャレンジ

簡単

ターゲットクラス ‘bottom’:

  1. display を Flex に設定します
  2. align-items を center に設定します。
  3. justify-content を space-between に設定します
  4. position を absolute に設定します
  5. bottom、left、right を 20 pixels に設定します。 
  6. padding を上下 10px、左右 12px に設定します

正確に仕上げるために、最後にこれらのプロパティを追加します:

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

自分で試してみよう

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

3Dカード | フロントエンドプロジェクトのすべてのレッスン