- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Instructor Muffin</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header class="site-header">
<h1>Instructor Muffin</h1>
<p>Training for beginner kittens</p>
<img src="img/muffin.png" width="359" height="159" alt="Muffin photo">
</header>
<section class="features">
<h2>Why choose me?</h2>
<p class="feature-kitten">I myself was once a kitten. But look at me now.</p>
<p class="feature-train">I have got the master fully trained.</p>
<p class="feature-cat">I have been a full-time professional cat for more than 5 years now.</p>
</section>
<section class="skills">
<h2>What will you learn, you may ask?</h2>
<ul class="skills-list">
<!-- Greetings from Muffin: Meow, I’ve added more markup classes here! -->
<li class="skills-item">How to snatch food from the master’s plate;</li>
<li class="skills-item">How to give furniture a vintage look;</li>
<li class="skills-item">How to open the door and not go in;</li>
<li class="skills-item">How to wake the master up at night;</li>
<li class="skills-item">How to scatter fur around the apartment.</li>
</ul>
</section>
<footer class="site-footer">
<p>© Muffin, 2019</p>
<p>I don’t have any contact information, but I can find you myself.</p>
</footer>
</div>
</body>
</html>
CSS
body {
padding: 0;
font-family: "Arial", sans-serif;
font-size: 14px;
line-height: 18px;
color: #000000;
background: #ffffff url("img/muffin-background.jpg") no-repeat 50% 0;
}
h1 {
width: 260px;
/* Change the property value to "Georgia", serif */
font-family: "Arial", sans-serif;
font-size: 36px;
line-height: 36px;
}
.site-header {
/* Change the property value to 30px */
margin-bottom: 190px;
}
.skills-item {
/* Change the property value to 15px */
margin-bottom: 5px;
}
.container {
width: 480px;
margin: 0 auto;
}
.site-header img {
display: block;
margin: 0 auto;
}
.features {
margin-bottom: 30px;
}
.features p {
display: inline-block;
vertical-align: top;
width: 30%;
margin: 0 5px;
background-repeat: no-repeat;
background-position: center top;
text-transform: uppercase;
}
.feature-kitten {
padding-top: 60px;
background-image: url("img/bottle.svg");
}
.feature-cat {
padding-top: 60px;
background-image: url("img/cat.svg");
}
.feature-train {
padding-top: 60px;
background-image: url("img/whistle.svg");
}
.skills-list {
padding: 0;
}
.site-footer {
display: flex;
justify-content: space-between;
color: #999999;
}
You’ve gone to a different page
Goalscompleted
0
- On line 13 replace
font-family: "Arial", sans-serif;
withfont-family: "Georgia", serif;
, - then change the line
margin-bottom: 190px;
tomargin-bottom: 30px;
, - and, finally, replace the line
margin-bottom: 5px;
withmargin-bottom: 15px;
.
Comments