Jump to content

2 rows of <li> elements in a slider?


Solarpitch

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.