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. Aspect ratio in carousel is off centered

Aspect ratio in carousel is off centered

Scheduled Pinned Locked Moved Addons
6 Posts 3 Posters 375 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.
  • J Offline
    J Offline
    jfrederick
    wrote on last edited by
    #1

    Hi -
    I changed my carousel to be a specific aspect ratio (with captions), and now the carousel is off centered. Link here: https://www.ikbird.com/test-home

    I am also using a full screen slider.

    Thank you !

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

      Dear @jfrederick
      you can set the position of the carousel captions in the carousel settings.

      Also you could use CUSTOM CSS to move it.

      Best!

      Marius

      www.mariusjopen.world

      J 1 Reply Last reply
      0
      • J Offline
        J Offline
        jfrederick
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • mariusjopenM mariusjopen

          Dear @jfrederick
          you can set the position of the carousel captions in the carousel settings.

          Also you could use CUSTOM CSS to move it.

          Best!

          Marius

          J Offline
          J Offline
          jfrederick
          wrote on last edited by
          #4

          @mariusjopen Hi! Thank you for getting back to me. I have everything set to center, and the distance from the top & bottom of the page to the carousel images is the same, however I don't totally understand why it is that when I turn on carousel captions, it doesn't continue to keep the content centered, it just places the caption below the centered image and now the page appears to be off-centered.

          I don't totally know how to explain it so I apologize in advance for the confusion.

          1 Reply Last reply
          0
          • edgrbnzE Offline
            edgrbnzE Offline
            edgrbnz
            wrote on last edited by
            #5

            I see what you mean – Technically the pictures are perfectly/mathematically centered – I measured that with xscope and the distance from top and bottom of the browser to the image ist exactly the same.

            But the optical/visual center is a different thing. Usually there’s more space needed below than above to put an image in the visual center.

            The added type/captions (visually) pushes it downwards even more.

            An easy way to fix this would be to give all your carousels a slight negative y-offset (around -2%). To do so you right click the placed element/carousel and type in the desired values:
            0_1562004458684_Window_and_Edit_Project_‹Moritz_Welker—_WordPress.jpg

            A different approach would be to create a CSS class which does effectively the same and either apply it to the elements you see fit or write down some CSS that changes the carousel wrap in general.
            Something like:

            .carousel-wrap {
            top: 48% !important; /*default=50%*/
            }
            

            Hope that helps!

            ✦ ✦ ✦

            J 1 Reply Last reply
            0
            • edgrbnzE edgrbnz

              I see what you mean – Technically the pictures are perfectly/mathematically centered – I measured that with xscope and the distance from top and bottom of the browser to the image ist exactly the same.

              But the optical/visual center is a different thing. Usually there’s more space needed below than above to put an image in the visual center.

              The added type/captions (visually) pushes it downwards even more.

              An easy way to fix this would be to give all your carousels a slight negative y-offset (around -2%). To do so you right click the placed element/carousel and type in the desired values:
              0_1562004458684_Window_and_Edit_Project_‹Moritz_Welker—_WordPress.jpg

              A different approach would be to create a CSS class which does effectively the same and either apply it to the elements you see fit or write down some CSS that changes the carousel wrap in general.
              Something like:

              .carousel-wrap {
              top: 48% !important; /*default=50%*/
              }
              

              Hope that helps!

              J Offline
              J Offline
              jfrederick
              wrote on last edited by
              #6

              @edgrbnz Thank you!!!

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