- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Applying Decorative Styling to the Line, Step 2</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="square">warmphoto</div>
  </body>
</html>
CSS
@font-face {
  font-family: "Montserrat Alternates";
  src: url("fonts/MontserratAlternates.woff") format("woff");
}
body {
  background: url("rain.jpg") no-repeat 50% 0;
  color: #333333;
  font-size: 12px;
  font-family: "Arial", sans-serif;
}
.square {
  margin: 150px auto;
  width: 260px;
  border: 5px solid #333333;
  text-align: center;
  text-transform: uppercase;
  font-size: 72px;
  font-family: "Montserrat Alternates", sans-serif;
}
You’ve gone to a different page
Goalscompleted
0
Assign the following to the .square block:
- the word-wraprule with the valuebreak-word;
- A distance between characters that is equal to 24px;
- left paddingequal to24px.
Comments