Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 110 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 Offline
    W Offline
    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:4567/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 Offline
      RichardR Offline
      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 Offline
        W Offline
        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 Offline
          RichardR Offline
          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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          šŸ’æ Email me here: šŸ’æ
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          arminunruhA
          arminunruh
          A
          alasdair17
          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