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

challenge task.

I set the padding to 15px. why it didn't work?

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

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

  </body>
</html>
styles.css
.social-links{
  margin= 10px;
  padding= 15px;
}

1 Answer

Amanda Allison
Amanda Allison
9,103 Points

You'll want to try using a colon ( : ) instead of an equals sign ( = ) like:

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

thank you :)