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. 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 519 Views 2 Watching
  • 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
    S
    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
      arminunruhA
      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
        S
        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
          arminunruhA
          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
            S
            spontans
            wrote on last edited by
            #5

            yes (:

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