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. Fullscreen Slider: Image align (left/center/right)

Fullscreen Slider: Image align (left/center/right)

Scheduled Pinned Locked Moved Addons
5 Posts 2 Posters 567 Views 1 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
    spoho
    wrote on last edited by spoho
    #1

    Hey,
    I would like to design my image slide so that the images are displayed at 100% height and I decide whether the images are aligned on the left, center or right. Here an example-site, where it becomes clear what I have in mind: https://www.juliajohnson.com/professional/iman-2

    So I first tried to create 3 columns: I can decide whether the image is centered left or right, but I can't get it to 100% height - the column controls the image width and thus limits the height. With the checkmark "Give elements a max-width and max-height and center them" in LayOption I get strange off's like this: Bildschirm­foto 2024-01-16 um 14.54.56-.png Bildschirm­foto 2024-01-16 um 14.54.40-.png

    As an alternative, I created a column with browser height and assigned classes to the images. In the custom-css I put in the simple code like height:100vh; float:left;
    This does not work either.
    Does anyone have an idea how to solve the problem?
    Here my website-link: http://robert-gruenheit.com/holiday-postcards/

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

      hey there!

      i see

      thanks for your patience!
      add this css to lay options → custom css & html → custom css:

      .fs-left, .fs-center, .fs-right{
          height: 100vh;
          width: auto!important;
      }
      
      .fs-left{
          left: 0!important;
      }
      .fs-center{
          left: 50%!important;
          transform: translateX(-50%)!important;
      }
      .fs-right{
          left: auto!important;
          right: 0!important;
      }
      
      .fs-left img,
      .fs-center img,
      .fs-right img{
          height: 100vh;
          position: relative;
          width: auto;
      }
      
      .fs-left .ph,
      .fs-center .ph,
      .fs-right .ph{
          display: none;
      }
      

      disable the max-width max-height setting in lay options → fullscreen slider

      now in your gridder,

      make sure your lay has frame top and frame bottom set to 0
      then make sure your rows are "browser height" when right-clicking rows, and choosing "use browser height"

      then put one image inside and right click it, choose "set html class and id"

      in html class enter:

      fs-left

      OR

      fs-center

      OR

      fs-right

      does it work for you?

      i need to improve the gridder so we can just set images to a fixed height. currently, only the elementgrid has a setting to have same-height images :O

      S 1 Reply Last reply
      0
      • arminunruhA arminunruh

        hey there!

        i see

        thanks for your patience!
        add this css to lay options → custom css & html → custom css:

        .fs-left, .fs-center, .fs-right{
            height: 100vh;
            width: auto!important;
        }
        
        .fs-left{
            left: 0!important;
        }
        .fs-center{
            left: 50%!important;
            transform: translateX(-50%)!important;
        }
        .fs-right{
            left: auto!important;
            right: 0!important;
        }
        
        .fs-left img,
        .fs-center img,
        .fs-right img{
            height: 100vh;
            position: relative;
            width: auto;
        }
        
        .fs-left .ph,
        .fs-center .ph,
        .fs-right .ph{
            display: none;
        }
        

        disable the max-width max-height setting in lay options → fullscreen slider

        now in your gridder,

        make sure your lay has frame top and frame bottom set to 0
        then make sure your rows are "browser height" when right-clicking rows, and choosing "use browser height"

        then put one image inside and right click it, choose "set html class and id"

        in html class enter:

        fs-left

        OR

        fs-center

        OR

        fs-right

        does it work for you?

        i need to improve the gridder so we can just set images to a fixed height. currently, only the elementgrid has a setting to have same-height images :O

        S
        S
        spoho
        wrote on last edited by spoho
        #3

        @arminunruh
        Thank you very much! Sorry for the long reply time and for not thanking you:

        I tried your code after your answer and it worked. After a few weeks it stopped working (pictures were no longer displayed at all).

        Do you have any idea what the problem might be? Updates?!

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4
          .fs-left, .fs-center, .fs-right{
              height: 100vh!important;
              width: auto!important;
          }
          
          .fs-left{
              left: 0!important;
          }
          .fs-center{
              left: 50%!important;
              transform: translateX(-50%)!important;
          }
          .fs-right{
              left: auto!important;
              right: 0!important;
          }
          
          .fs-left img,
          .fs-center img,
          .fs-right img{
              height: 100vh!important;
              position: relative!important;
              width: auto!important;
          }
          
          .fs-left .ph,
          .fs-center .ph,
          .fs-right .ph{
              display: none!important;
          }
          
          

          try this css instead, its just with !important at the end of everything

          S 1 Reply Last reply
          0
          • arminunruhA arminunruh
            .fs-left, .fs-center, .fs-right{
                height: 100vh!important;
                width: auto!important;
            }
            
            .fs-left{
                left: 0!important;
            }
            .fs-center{
                left: 50%!important;
                transform: translateX(-50%)!important;
            }
            .fs-right{
                left: auto!important;
                right: 0!important;
            }
            
            .fs-left img,
            .fs-center img,
            .fs-right img{
                height: 100vh!important;
                position: relative!important;
                width: auto!important;
            }
            
            .fs-left .ph,
            .fs-center .ph,
            .fs-right .ph{
                display: none!important;
            }
            
            

            try this css instead, its just with !important at the end of everything

            S
            S
            spoho
            wrote on last edited by
            #5

            @arminunruh
            Works! Great! Thanks so much!

            1 Reply Last reply
            1

            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