• Resolved ekam230

    (@ekam230)


    I want add some class for img in carusel. How i can do it?

    i want add class “d-block” and “w-100” to img for responsive.
    Delete width and height from img

    • This topic was modified 4 years, 10 months ago by ekam230.
Viewing 1 replies (of 1 total)
  • Plugin Author Phil Ewels

    (@tallphil)

    Hi @ekam230,

    It’s not possible to add classes to the image in the carousel (without editing the plugin code). However, you should be able to target it with your own custom CSS pretty easily.

    The carousel should have the class carousel, so the CSS for the carousel images is .carousel img. For example, the following should give the same effect as adding d-block and w-100 to the image elements:

    .carousel img {
        display: block;
        width: 100%;
    }
    

    I hope this helps!

    Phil

    • This reply was modified 4 years, 10 months ago by Phil Ewels.
    • This reply was modified 4 years, 10 months ago by Phil Ewels.
Viewing 1 replies (of 1 total)
  • The topic ‘How add class to img?’ is closed to new replies.