justask.dev

Community powered answers to your dev questions

Center <div>

posted: 2019 December 6th

category: css

Edit this post on GitHub.

Back

The absolute classic. How do i get this damn div to center. Check out tipue.com/blog/center-a-div for some great info.

1.center-div {
2 margin: 0 auto;
3 }

Author: Rich Haines