Jump to content

Recommended Posts

Hi Guys,

 

I have a simple slider I've code with jQuery that moves through a list of <li> elements. I want the user to have a option to show smaller thumbs and in doing so the slider changes to 2 rows of <li>. I've attached an example of what I'm talking about. Not sure what the best way to approach this is, maybe more of a css question?

 

When the user switches between the 2 views I want the next <li> in the large view, to be the element below in the small view.

 

Any help would be great.

post-41012-13482403666501_thumb.jpg

Link to comment
https://forums.phpfreaks.com/topic/266462-2-rows-of-elements-in-a-slider/
Share on other sites

From:

<ul>
     <li>IMG<//li>
     ...
     </li>IMG</li>
</ul>

 

To:

<ul>
     <li><ul>
          <li>IMG</li>
          <li>IMG</li>
     </ul></li>
     ...
     <li><ul>
          <li>IMG</li>
          <li>IMG</li>
     </ul></li>
</ul>

 

Boom.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.