Tell us what’s happening:
my css says you should have #playing cards selector with display set to flex…i did it but still showing same error
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheets" ref="style.css">
<title>Playing Cards</title>
</head>
<body>
<main id="playing-cards">
<div class="card">
<div class="left">A</div>
<div class="middle">♠
</div>
<div class="right">A</div>
</div>
<div class="card">
<div class="left">K</div>
<div class="middle">♥</div>
<div class="right">K</div>
</div>
<div class="card">
<div class="left">A</div>
<div class="middle">♦
</div>
<div class="right">A</div>
</div>
</main>
</body>
</html>
/* file: styles.css */
main{
width: 800px;
height: 900px;
background-color: lavender;
}
#playing-cards {
display:flex;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
}
.left {align-self: flex-start;}
.middle{
display: flex;
flex-direction: column;
align-self: center;
}
.right {
align-self: flex-end;
}
.card{
display: flex;
justify-content: space-between; width: 150px;
height: 220px;
border: 1px solid black;
border-radius: 8px;
padding: 10px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Challenge Information:
Build a Page of Playing Cards - Build a Page of Playing Cards