Skip to content

Instantly share code, notes, and snippets.

@lizkaraffa
Created November 4, 2013 23:45
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 lizkaraffa/7311400 to your computer and use it in GitHub Desktop.
Save lizkaraffa/7311400 to your computer and use it in GitHub Desktop.
Add the appropriate CSS within the same media query that will force the “love at first bite” illustration to disappear. I added lines 67-69 in styles.css.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css" type="text/css">
<link href="//fonts.googleapis.com/css?family=Nunito:400,300,700" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<div id="intro">
<div class="grid_4">
<h1>We're kicking taste buds in to high gear with our featured avocado chocolate cupcake from the west to the east coast.</h1>
</div>
<div class="grid_2 omega">
<img src="img/love-at-first-bite.gif" alt="Love at First Bite">
</div>
</div>
<div id="featured-cupcakes" class="grid_12">
<div class="grid_2">
<h2>Bacon Me Crazy</h2>
<img src="img/bacon-medium.jpg" alt="Bacon Me Crazy" class="cupcake">
</div>
<div class="grid_2">
<h2>Jalapeno So Spicy</h2>
<img src="img/lime-medium.jpg" alt="Jalapeno So Spicy" class="cupcake">
</div>
<div class="grid_2 omega">
<h2>Avocado Chocolate</h2>
<img src="img/avocado-medium.jpg" alt="Avocado Chocolate" class="cupcake">
</div>
</div>
</div>
</body>
</html>
body {
font-family: 'Nunito', sans-serif;
font-weight: 100;
font-size: 1.25em;
color: #faf3bc;
background-color: #420600;
}
.grid_1 { width: 15.625%; } /* 125px/800px = 15.625% */
.grid_2 { width: 32.5%; } /* 260px/800px = 32.5% */
.grid_3 { width: 49.375%; } /* 395px/800px = 49.375% */
.grid_4 { width: 65.625%; } /* 525px/800px = 65.625% */
.grid_5 { width: 83.125%; } /* 665px/800px = 83.125% */
.grid_6 { width: 100%; } /* 800px/800px = 100% */
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6 {
margin-right: 1.25%;
float: left;
display: block;
}
.alpha { margin-left:0; }
.omega {margin-right:0; }
.container{
width: 90%;
max-width: 800px;
padding: 4% 0;
margin: auto;
}
img {
max-width: 100%;
}
h1 {
font-size: 1.750em;
line-height: 1.25em;
font-weight: 100;
letter-spacing: -2.75px;
}
h2 {
font-weight: 100;
font-size: 1.15em;
color: #b4c34f;
}
.cupcake {
box-sizing: border-box;
background-color: #faf3bc;
padding: 8px;
margin: 0 0 5% 0;
}
/*smaller resolution screen*/
@media screen and (max-width:705px){
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6 {
width:100%;
}
#intro-img {
display:none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment