- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Horizontal Text Shadow Offset</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <span>☻</span>
    <h1>They Arrived. Road From the Airport</h1>
  </body>
</html>
CSS
body {
  background: url("road.jpg") no-repeat 50% 0;
  color: #eadec8;
  font-family: "Arial", sans-serif;
}
h1 {
  margin-top: 350px;
  text-align: center;
  text-shadow: 0px 0px 0px #333333;
  font-weight: normal;
  font-size: 50px;
}
span {
  position: absolute;
  top: 260px;
  left: 110px;
  font-size: 70px;
}
You’ve gone to a different page
Goalscompleted
0
Shift the original shadow (which was initially invisible) for the heading h1
- left by 5px,
- and then shift it right by 5px.
Comments