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
19 changes: 17 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,25 @@
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<title>Coins CSS Exercise</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<header>
<img src="images/ethiopia1.png" alt="Ethiopian Coin">
<img src="images/ethiopia1.png" alt="Ethiopian Coin">
<img src="images/ethiopia1.png" alt="Ethiopian Coin">
<img src="images/ethiopia1.png" alt="Ethiopian Coin">
</header>
<main>
<div class="bigCoin">
<div class="smallCoins"><img src="images/usa2.png" alt="Back of coin"></div>
<div class="smallCoins"><img src="images/usa2.png" alt="Back of coin"></div>
<div class="smallCoins"><img src="images/usa2.png" alt="Back of coin"></div>
</div>
</main>
<footer>
<h3>This is a fixed footer. &copy; 2018 John Savone.</h3>
</footer>
</body>
</html>
76 changes: 76 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
body {
margin: 0;
min-width: 575px;
height: 100vh;
}

header {
background-color: #2F2F2F;
height: 150px;
}

header img {
height: 115px;
width: 115px;
margin: 5px 0px 0px 30px;
}

header img:nth-child(-n+3) {
float: left;
}

header img:nth-child(3) {
-webkit-animation: rotating 3s linear infinite;
}

header img:last-child {
float: right;
margin-left: 0px;
margin-right: 25px;
}

footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
background-color: #2F2F2F;
height: 30px;
color: #d88424
}

footer h3 {
margin-top: 3px;
}

main {
padding-top: 30px;
height: 100%;
width: 575px;
background-color: purple;
}

.bigCoin {
text-align: center;
height: 275px;
background-image: url("images/usa1.png");
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}

.smallCoins img {
-webkit-animation: rotating 3s linear infinite;
height: 35px;
width: 35px;
margin-bottom: 10px;
}

@-webkit-keyframes rotating {
from{
-webkit-transform: rotate(0deg);
}
to{
-webkit-transform: rotate(360deg);
}
}