The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › list image alignment
hi
i have a series of 3 images in a list that i need to appear centrally aligned beneath a paragraph of text.
css:
.serviceIcon ul li {
padding: 20px 10px 20px 0px; width: 40px; height:40px; list-style:none; display: inline-block; float: none;
}
html:
..and?
All you have done is state a requirement not what the issue is.
…aaaand they’re not appearing as required, they are still hanging about the left hand margin.
How could we tell?
Do you have a link or a Codepen?
Oh…and you do know you haven’t closed those pesky `li` tags…don’t you?