Results 1 to 4 of 4

Thread: No Space between first and last image?? - C-Motion Horizontal Continuous

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default No Space between first and last image?? - C-Motion Horizontal Continuous

    1) Script Title: C-Motion Horizontal Continuous

    2) Script URL (on DD): http://www.dynamicdrive.com/forums/s...?t=3464&page=5

    3) Describe problem: The only problem I seem to be encountering is that there is no space between the last image and the first image when the list of images loops. I noticed this was the case in the example of the code as well.

    Is there anyway to create the same space as between all the other images?

    You can see my page here: http://www.bryanduckworth.com/WPtest

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Take a look at this post
    http://www.dynamicdrive.com/forums/s...=cmotion+space
    I turns out that the spaces between the images are because of the markup. I Would think that you could start by getting rid of the spaces like described in the post and after that make the margins with css like this
    #motioncontainer a img { margin-left: 2px;}
    or something like that. I'm not sure but i guess it would work if you start by getting rid of the differences caused by the markup.

  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, so I made the changes to the mark up and the removed the space between all the images.

    However, I can't seem to add a space, which is what I initially wanted to accomplish.

    Using "margin:" in CSS leads to the last image overlapping the first image when it loops.

    Any other ideas?

  4. #4
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    easiest to use a blank gif to provide the 'space'
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •