-
-
Save codecademydev/53c13155ab8e94693683ad235178c7be to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(https://fonts.googleapis.com/css?family=Pacifico); | |
//Add variables here: | |
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; | |
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment