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

I think my "padding" code is correct but the system keeps signaling an error. Can you help me?

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

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 {
 margin= 10px;
 padding= 15px;
}

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

2 Answers

Frans de Haan
Frans de Haan
6,303 Points

You used the = character istead of the : character.

The code need to be like this:

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

Wow, didn't just realize. You're right! Thanks a lot!