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. Is it possible to horizonatly align slides in a 'fixed height' carousel?

Is it possible to horizonatly align slides in a 'fixed height' carousel?

Scheduled Pinned Locked Moved Addons
5 Posts 2 Posters 116 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.
  • S Offline
    S Offline
    spontans
    wrote on last edited by spontans
    #1

    Hi!

    I have a fixed height (100vh) fading autoscrolling carousel, and I would like to make all the images aligned to the right (or to the left for e.g) instead of being centered horizontally.
    Is it somehow possible to do so? I tried to break my head with CSS but without success.

    https://cleanplatestudios.com/ta/yardenvasa

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      Sure!

      to align right:

      .lay-carousel-slide img {
          right: 0!important;
          left: auto!important;
          transform: none!important;
      }
      

      to align left:

      .lay-carousel-slide img {
          left: 0!important;
          right: auto!important;
          transform: none!important;
      }
      

      probably its a good idea: in the gridder, right click the carousel, set html class and id, for class enter:
      carouselright

      then use this css:

      .carouselright .lay-carousel-slide img {
          right: 0!important;
          left: auto!important;
          transform: none!important;
      }
      

      i will need to create a setting for this, wrote it down

      1 Reply Last reply
      1
      • S Offline
        S Offline
        spontans
        wrote on last edited by spontans
        #3

        Thanks for the quick reply Armin, the images do align to the right now but some images that sink beyond the baseline...

        https://cleanplatestudios.com/ta/yardenvasa/

        Screenshot 2024-02-03 at 12.01.22 PM.png

        Screenshot 2024-02-03 at 12.01.09 PM.png

        Screenshot 2024-02-03 at 12.02.33 PM.png

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4
          .carouselright .lay-carousel-slide img {
              right: 0!important;
              left: auto!important;
              top: 0!important;
              transform: none!important;
          }
          

          maybe like this?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            spontans
            wrote on last edited by
            #5

            yes (:

            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
            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