Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 39 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Super Wars</title>
<link rel="stylesheet" href="style.css">
</head>

<body>

<footer class="footer">Made with <img src="/images/Vector.svg"> by ProGrad</footer>
</body>
<link rel="stylesheet" href="style.css" />
</head>

</html>
<body>
<div class="container">
<div class="heros">
<div>
<img src="./images/super-1.png" alt="Spiderman" />
<p>Spiderman</p>
<p class="score">12</p>
</div>
<div>
<img src="./images/super-3.png" alt="Wonder Women" />
<p>Wonder Women</p>
<p class="score">30</p>
</div>
</div>
<div class="score">5 - 0</div>
<div class="villians">
<div>
<img src="./images/super-2.png" alt="Captain America" />
<p>Captain America</p>
<p class="score">50</p>
</div>
<div>
<img src="./images/super-4.png" alt="Gem Women" />
<p>Gem Women</p>
<p class="score">12</p>
</div>
</div>
</div>
<footer class="footer">
Made with <img src="./images/Vector.svg" /> by ProGrad
</footer>
</body>
</html>
27 changes: 26 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
.footer{
margin-left : 80px;
margin-left : 120px;
margin-top: 20px;
font-size : 18px;
}

.container{
margin-top: 1em;
display: grid;
grid-template-columns: 1fr .5fr 1fr;
justify-items:center;
}

.heros, .villians{
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 1.5em;
}

.heros > div, .villians > div{
border-radius: 10px;
box-shadow: .5px .5px 5px 1px #555;
text-align: center;
}

.score{
font-size:3em;
margin: 0px;
}