Grow your CSS skills. Land your dream job.

list image alignment

  • # May 1, 2013 at 8:54 am

    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:

    # May 1, 2013 at 9:41 am

    ..and?

    All you have done is state a requirement not what the issue is.

    # May 1, 2013 at 9:48 am

    …aaaand they’re not appearing as required, they are still hanging about the left hand margin.

    # May 1, 2013 at 9:51 am

    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?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".