CSS quiz · 42 questions

Percentage spacing

Read the code

What are the paragraph's top margin and left padding?


<div>
  <p>I'm a paragraph</p>
</div>

<style>
  div {
    width: 300px;
    height: 100px;
  }

  div p {
    margin-top: 50%;
    padding-left: 50%;
  }
</style>
  • 1–4 answer
  • ← previous
Question 30 of 4269%