Grow your CSS skills. Land your dream job.

centering slide via css

  • # March 5, 2013 at 9:15 pm

    I’m starting to love this forum!

    Anyone can help me center the slide? Preferably via CSS of course.

    [This is the webpage](http://www.mytravel22.com/login/kemaman/strong.html “”)

    # March 5, 2013 at 10:05 pm

    if all the images will be the same width (as the two currently are) then give the ul that width and center it with auto left and right margins

    # March 5, 2013 at 10:52 pm

    tried it as per below:-

      Still doesn’t works. Any more ideas???

    # March 5, 2013 at 11:13 pm

    the images are 1122px wide – why would you give the parent ul a width of 500px (furthermore, why would you do it via inline styling)? I said to use left and right auto margins (like your nav uses) – not the align attribute (which is deprecated – use css).

    .rslides {
    width: 1122px;
    margin: 0 auto;
    }

    # March 6, 2013 at 12:55 am

    Sorry…didn’t get u the 1st time. Now it’s clear & solved. Thanks wolfcry911.

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

You must be logged in to reply to this topic.

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