Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorc0077
    • CommentTimeApr 2nd 2008
     permalink
    Hello everyone.
    I have a ul compose from li images into a div. All I want is to align center that ul(li) .
    The images start from left margin of the div and I want to be centered.
    Thank you.


    EX:
    <div id="content1">
    <ul class="hover">
    <li>
    <img src="img.jpg">
    </li>
    <li>
    <img src="img2.jpg">
    </li>
    </ul>
    </div>
    •  
      CommentAuthorthe.x.man
    • CommentTimeApr 3rd 2008
     permalink
    If I correctly understand what you are trying to acheive, it should be a simple matter of including this in your css -

    li {
    text-align: center;
    }
    • CommentAuthortom0407
    • CommentTimeApr 10th 2008
     permalink
    Maybe it would help if you defined a width for your elements... Although the poster above sounds like a logical first thing to try.
Add your comments
    Username Password
  • Format comments as (Help)