- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Vertical Text Shadow Offset</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>I Meet the Sunrise on My Way to the Mountains</h1>
<span>☻</span>
</body>
</html>
CSS
body {
background: url("sunrise.jpg") no-repeat 50% 0;
color: #eadec8;
font-family: "Arial", sans-serif;
}
h1 {
margin: 120px 30px;
text-align: center;
text-shadow: 5px 0px 0px #333333;
font-weight: normal;
font-size: 50px;
}
span {
position: absolute;
top: 400px;
left: 110px;
font-size: 70px;
}
You’ve gone to a different page
Goalscompleted
0
Offset the original shadow of the heading h1
- up by
5px
, - and then down by
5px
.
Comments