Skip to content

Commit b9fa8c8

Browse files
update some css
1 parent 1c11fd5 commit b9fa8c8

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

001-expanding cards/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<!-- <link
6+
<link
77
rel="stylesheet"
88
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
99
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
1010
crossorigin="anonymous"
11-
/> -->
11+
/>
1212
<link rel="stylesheet" href="style.css" />
1313
<title>Expanding cards</title>
1414
</head>

001-expanding cards/style.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
body {
88
font-family: "Muli", sans-serif;
9-
display: flex;
9+
display: block;
1010
align-items: center;
1111
justify-content: center;
1212
height: 100vh;
@@ -15,8 +15,9 @@ body {
1515
}
1616

1717
.container {
18-
display: flex;
19-
width: 90vw;
18+
display: block;
19+
width: 90vh;
20+
2021
}
2122

2223
.panel {
@@ -27,6 +28,7 @@ body {
2728
border-radius: 50px;
2829
color: #fff;
2930
cursor: pointer;
31+
display: block;
3032
flex: 0.5;
3133
margin: 10px;
3234
position: relative;
@@ -45,6 +47,7 @@ body {
4547

4648
.panel.active {
4749
flex: 5;
50+
4851
}
4952

5053
.panel.active h3 {

0 commit comments

Comments
 (0)