クラス 'bottom'
Coddyの「3Dカード | フロントエンドプロジェクト」コースのレッスン 18/31。
チャレンジ
簡単ターゲットクラス ‘bottom’:
- display を Flex に設定します
- align-items を center に設定します。
- justify-content を space-between に設定します
- position を absolute に設定します
- bottom、left、right を 20 pixels に設定します。
- 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>