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

Elizabeth Ekhuemelo
Elizabeth Ekhuemelo
677 Points

I have not been able to get the question on padding right - I put padding 15px but the answer returns an error

I don't know why an error is returned when I put padding 15px as requested - is there something that I can amend?

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

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


  padding 15px.
  margin 10px.


1 Answer

Rather than adding a full stop at the end of each line, you should use a semi colon ; And you'll need a colon right after each attribute such that:

  padding: 15px;
  margin: 10px;

but even when i do that it says "Bummer: You need to set the padding for .social-links elements to 15px. i i have .social-links{ padding: 15px; margin: 10px; }.

nevermind a simple restart has sorted the problem out.