Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anything Slider image alignment – margin to the right??

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38887
    panzerwraith
    Member

    It’s a problem I’ve seen bandied around before on various forums etc but can’t find a definitive way of solving it…

    http://junk-shed.com/other/scruffydog/index.html

    On the above (very basic) dev site, it’s obvious that the images are not positioning correctly on the Anything Slider.

    The code is as per the original I was provided with, bar changing the default sizing to width:600px; height:350px;

    This is the coding on the page itself:




    • 130 Land Rover


    • 130 Land Rover


    • 130 Land Rover


    • 130 Land Rover


    • 130 Land Rover


    • 130 Land Rover


    and the CSS coding, which is long, so can be found here: http://www.junk-shed.com/css/anythingslider.css

    It’s probably something glaringly obvious – but I’m missing it!!

    #106034
    Mottie
    Member

    Hi panzerwraith!

    Go to your anythingslider.css file, line 47 and add a padding set to zero:

    ul.anythingBase {
    background: transparent;
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    }
    #106074
    panzerwraith
    Member

    Thank you so much :) I’m kicking myself now! Such an obvious solution.

    Really appreciate it.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.