- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Text Shadow Feathering</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>I Conquer Impregnable Cliffs</h1>
<span>☻</span>
</body>
</html>
CSS
body {
background: url("mountain.jpg") no-repeat 50% 0;
color: #e7d8c5;
font-family: "Arial", sans-serif;
}
h1 {
margin: 30px;
text-align: center;
text-shadow: 0px 0px 0px #111111;
font-weight: normal;
font-size: 50px;
}
span {
position: absolute;
top: 270px;
left: 80px;
font-size: 20px;
}
You’ve gone to a different page
Goalscompleted
0
Set the original shadow (which is initially not visible) of the heading h1
.
- set
5px
of feathering, - then decrease it by
10px
, - and finally increase the feathering to
15px
.
Comments