HTML Introduction to HTML and CSS Make It Beautiful With CSS Adding a Style to several Elements using Class

Raz Avramov
Raz Avramov
160 Points

In the CSS file, use the class to give both <a> tags 15px of padding and 10px of margin. stuck on this

index.html
<!doctype html>
<html>
  <head>
    <title>List Example</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>

    <a class="social-links" href="#">Follow me on Twitter!</a>
    <a class="social-links" href="#">Send me an Email!</a>

  </body>
</html>
styles.css
.social-links {
text-align:center:
padding:  15px;
  margin: 10px;
}
.<a> {
  padding: 15px;
  margin: 10px;
}

1 Answer

Diego de la Viña
Diego de la Viña
3,530 Points

Try this

.social-links {
  text-align: center;
  padding: 15px;
  margin: 10px;
  }