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?

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 {
  text-align: center;
  color: red;
  padding: 15px;
  margin: 10px;
}

1 Answer

furkan
PRO
furkan
Pro Student 9,513 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.