Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8404477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:36:36+00:00 2026-06-09T22:36:36+00:00

I am using jquery cycle to shuffle some images around. I have div containers

  • 0

I am using jquery cycle to shuffle some images around. I have div containers floating left so they are side by side. There is a gap showing between the center div and the right div which i believe is because the first image is 100px wide and the second one is 200px wide. Is there a way to make the container adjust to the width of the image that is showing so there is no gap?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:36:37+00:00Added an answer on June 9, 2026 at 10:36 pm

    This worked for me:

    JS

    /* Cycle plugin fit width */
    $('#slider1 ul').cycle({
        fx:     'scrollLeft',
        easing: 'easeOutBack',
    
    
        nowrap:  0 ,
        delay:  -2200,
        before: function(curr, next, option){
    
               var w = curr.style.width;
               $('#slider1 ul').css({'width': w});
    
        }
    });
    

    HTML

    <div id="slider1" style="float:left;width:auto;margin:0">
    <ul  style="width: 150px; margin:0; padding:0">
    <li style="width: 200px"><img src="shuff/1.jpg" height="165" width="150"  /></li>
    <li style="width: 150px"><img src="shuff/2.jpg" height="165" width="200" /></li>
    </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the jQuery cycle plugin to cycle through some images. These images
I have some pictures, and I am using the jQuery cycle plugin to show
I am using the cycle jquery plugin. I have a few images that fade
I have a long list that I want to 'paginate' using jQuery Cycle. There's
I'm using jQuery and cycle.js to fade through some images on this site. On
I am using Jquery Cycle Plugin and it has a side panel that highlights
I am using jQuery cycle in combination with a mousewheel plugin. I have built
I'm using jQuery Cycle to create several slideshows on the same page. Some of
I'm currently using jQuery.Cycle to cycle through a few child <div> tags. However, I
Is there a good way of using jQuery cycle to randomise slides based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.