version 4, game board and score added
This commit is contained in:
+37
-4
@@ -1,19 +1,52 @@
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#score {
|
||||
text-align: center;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
|
||||
.game-board {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
width: 600px;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 200px;
|
||||
height: 250px;
|
||||
|
||||
border: 5px solid black;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.box img {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
|
||||
.card-img {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card-img img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.card-imgs {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
Reference in New Issue
Block a user