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

Lashonda Hughes
Lashonda Hughes
420 Points

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

i am not sure what i have incorrect can someone assist please?

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

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

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

1 Answer

Pro Student 9,529 Points

You must remove the extra curly braces above the .social-class in the css, and remove all other unnecessary styles e.g. text-align and color since the challenge only asks for padding and margin.