Coder Social home page Coder Social logo

Show multiple slides about swipe HOT 3 OPEN

Vetalb8 avatar Vetalb8 commented on August 20, 2024
Show multiple slides

from swipe.

Comments (3)

yinguangyao avatar yinguangyao commented on August 20, 2024 3

@Vetalb8 oh, I know your mean.
I mean you must use a parent div to wrap around your image lists or div lists.
I think you can modify as follows:

html

<div id='mySwipe' style='max-width: 500px; margin: 0 auto' class='swipe'>
    <div class='swipe-wrap'>
        <div class="swipe-item"> 
            <div><b>1</b></div>
            <div><b>2</b></div>
            <div><b>3</b></div>
            <div><b>4</b></div>
        </div>
        <div class="swipe-item">
            <div><b>5</b></div>
            <div><b>6</b></div>
            <div><b>7</b></div>
            <div><b>8</b></div>
        </div>
        <div class="swipe-item">
            <div><b>9</b></div>
            <div><b>10</b></div>
            <div><b>11</b></div>
            <div><b>12</b></div>
        </div>
        <div class="swipe-item">
            <div><b>13</b></div>
            <div><b>14</b></div>
            <div><b>15</b></div>
            <div><b>16</b></div>
        </div>
    </div>
</div>

css

.swipe-wrap .swipe-item {
    float: left;
    width: 100%;
    position: relative;
}
.swipe-wrap .swipe-item > div {
    width: 25%;
    float: left;
}

My English is poor, and I don't know if you can understand what I mean

from swipe.

yinguangyao avatar yinguangyao commented on August 20, 2024

@Vetalb8
Yes, I think you can modify given css as follows if you have four images:

.swipe-wrap > div {
  float: left;
  width: 25%;
  position: relative;
}

from swipe.

Vetalb8 avatar Vetalb8 commented on August 20, 2024

@yinguangyao it doesn't work https://codepen.io/anon/pen/xXRdMx

from swipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.