Home › Forums › Support › centre a div in a section › Reply To: centre a div in a section
September 28, 2016 at 9:46 pm
#230205
Tom
Lead Developer
Lead Developer
That’s definitely one way ๐
If you want to use your #icons div, you can do this:
#icons {
max-width: 800px;
margin: 0 auto;
text-align: center;
}
margin: 0 auto
only works if the element has a width.