Center row of Images
Hi all
This seems like a really simple question but I can’t work it out.
I have a group of images floated in a list like this
But I want to center the images like this.
Center row of Images
Hi all
This seems like a really simple question but I can’t work it out.
I have a group of images floated in a list like this
But I want to center the images like this.
remove the float and add display: inline.
ul li {
margin-left: 5px;
display: inline;
}
and dont gorgt to to add “text-align:center” to the UL after doing that.
Thank you for that
I knew it was going to be simple but I didn’t realize display:inline would center it.