Which style will horizontally center the inner
within the outer
?

<div id=”outer”>
<div id=”inner”>Center Me!</div>
</div>

  • #inner {
    width: 50%;
    }
  • #outer {
    width: 100%;
    }
  • #inner {
    left: 0;
    right: 0;
    position: center;
    }
  • #inner {
    text-align: center;
    }
  • #inner {
    width: 50%;
    margin: 0 auto;
    }
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

G Certification Course We would like to show you notifications for the latest news and updates.
Dismiss
Allow Notifications
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend