Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created June 9, 2017 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/ec9a9c63c93e172e9d253f7c6bbff5a7 to your computer and use it in GitHub Desktop.
Save codecademydev/ec9a9c63c93e172e9d253f7c6bbff5a7 to your computer and use it in GitHub Desktop.
Codecademy export
<link rel="stylesheet" type="text/css" href="main.css">
<h1>LEMONADE</h1>
<div class="banner">
<div class="slogan">
<span>
homemade with fresh ingredients
</span>
</div>
</div>
<div class="container">
<div class="icon">
fresh lemons
<img src="lemon.png">
</div>
<div class="icon">
real sugar
<img src="lemon.png">
</div>
<div class="icon">
dad's recepie
<img src="lemon.png">
</div>
</div>
@import url(https://fonts.googleapis.com/css?family=Pacifico);
//Add variables here:
$translucent-white: rgba(255,255,255,0.3);
$icon-square-length: 300px;
h1 {
font-family: Roboto, sans-serif;
text-align: center;
}
.banner {
font-family: 'Pacifico', cursive;
height: 400px;
background-image: url("lemonade.jpg");
border : {
top: 4px solid black;
bottom: 4px solid black;
}
}
.slogan {
position: absolute;
border: 4px solid black;
top: 200px;
left: 25%;
width: 50%;
height: 200px;
background-color: $translucent-white;
span {
position: absolute;
text-align: center;
line-height: 200px;
}
}
}
.container {
text-align: center;
font-family: 'Pacifico', cursive;
.icon {
display: inline-block;
margin: 2%;
border: 4px solid black;
font-size: 32px;
width: $icon-square-length;
height: $icon-square-length;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment