- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The website of a beginning coder</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<p class="page-title">Blog</p>
<nav class="blog-navigation">
<a href="index.html">Return to home</a>
</nav>
</header>
<main>
<article>
<h1>Day Eleven. Everything should be taken in moderation</h1>
<p>I realized that I fed the cat too much. The cat decided to remove this item from the to-do list so that he would be able to walk across the snow and not fall through it.</p>
<ol>
<li><del>Feed the cat</del></li>
<li><ins>Do not forget to eat yourself</ins></li>
<li>Water the cactus</li>
<li>Turn off the light</li>
<li>Leave the house to run errands</li>
</ol>
</article>
<aside class="partnership">
Your ad could go here
</aside>
</main>
<footer>
Website footer
</footer>
</body>
</html>
CSS
body {
padding: 0 30px;
font-size: 16px;
line-height: 26px;
font-family: "Arial", sans-serif;
color: #222222;
background: #ffffff url("img/bg-page.png") no-repeat top center;
}
h1 {
font-size: 24px;
line-height: normal;
}
h2 {
font-size: 20px;
line-height: normal;
}
a {
color: #0099ef;
text-decoration: underline;
}
.page-title {
font-weight: bold;
font-size: 36px;
line-height: 42px;
font-family: "Verdana", sans-serif;
text-align: center;
}
.avatar-container {
text-align: center;
}
.avatar {
border-radius: 50%;
}
.blog-navigation {
margin-bottom: 30px;
padding: 20px;
color: #ffffff;
background-color: #4470c4;
border: 5px solid #2d508f;
}
.blog-navigation h2 {
margin-top: 0;
}
.blog-navigation ul {
padding-left: 0;
list-style: none;
}
.blog-navigation li {
margin-bottom: 5px;
}
.blog-navigation a {
color: #ffffff;
}
.skills dd {
margin: 0;
margin-bottom: 10px;
background-color: #e8e8e8;
}
.skills-level {
font-size: 12px;
text-align: center;
color: #ffffff;
background-color: #4470c4;
}
.skills-level-ok {
background-color: #47bb52;
}
.partnership {
color: #ffffff;
background-color: #4a87fa;
background-image: url("img/bg-partnership.svg");
}
footer {
margin-top: 30px;
}
You’ve gone to a different page
Goalscompleted
0
- Set the text color by assigning
color
the value#ff4400
in thedel
rule, - and then for
ins
set it to a value ofrgb(105, 178, 83)
. - And in the rule for
.blog-navigation
change the value of the background color forbackground-color
torgba(68, 112, 196, 0.7)
.
Comments