Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Addons
  3. Left alignment of images in carousel - custom CSS not working

Left alignment of images in carousel - custom CSS not working

Scheduled Pinned Locked Moved Addons
4 Posts 2 Posters 427 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    W
    watersigils
    wrote on last edited by
    #1

    Hey there,

    I tried using some CSS from a previous post on here to get my images to align to the left of the carousel but it doesn't seem to be working.

    Here is a page from the website I'm working on as an example: https://fmagazine.info/acid-free-fair

    And here is the code I tried:

    .col .lay-carousel img.h100 {
        -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
        transform: translateX(0%);
        left: 0%;
    }
    

    I got the code from this post, which seemed to work for the original poster: http://laythemeforum.com/topic/1524/left-aligned-pictures-in-carousel/4

    I've played around with the different carousel sizes to see if this was the issue (both fixed height & aspect ratio of first element) to no avail.

    Any insight as to why it might not be working for me?

    Thanks!

    1 Reply Last reply
    0
    • RichardR
      RichardR
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @watersigils

      Does the following code work for what you need?

      .lay-carousel-slide{
          transform: translateX(-15%);
      }
      

      Best wishes :)
      Richard

      1 Reply Last reply
      0
      • W
        W
        watersigils
        wrote on last edited by
        #3

        That seemed to work!

        Of course the simplest answer... thank you so much :)

        1 Reply Last reply
        0
        • RichardR
          RichardR
          Richard
          Global Moderator
          wrote on last edited by
          #4

          @watersigils

          No worries :) Good luck with the rest of your project!

          Sincerely
          Richard

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search