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. Bug Reports
  3. Thumbnail ratio 3:2

Thumbnail ratio 3:2

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 589 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.
  • R
    R
    robsdonatini
    wrote on last edited by
    #1

    Hello there,
    I'm trying to have all the project thumbnails image in the ratio 3:2 horizontal.
    I'm not using thumbnail grid, but inserting them one by one in a page (is it convenient?)

    https://wip.landcho.eu/all-projects/
    usr casetta
    psw cibocinese

    Is there a way to make them all 3:2 and to crop for example vertical images centering them into the 3:2 frame?

    I found this http://laythemeforum.com/topic/5660/thumbnail-image-aspect-ratio/3?_=1752573772175 but not sure how to use it, I'm not getting the % things on padding-bottom...

    Thank you,

    Roberta

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #2
      .col.type-project .ph{
      padding-bottom: 66.6666666%!important;
      }
      

      add this in:
      lay options -> custom css & html -> custom css

      1 Reply Last reply
      0
      • R
        R
        robsdonatini
        wrote on last edited by
        #3

        it worked on the frame, but still the image is not filling the frame as you see here

        Schermata 2025-07-15 alle 15.33.16.png

        i tried to add this code

        .thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        }

        and trying also with
        .col.type-project .ph .img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        }

        but nothing changes.

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4
          .col.type-project .ph{
          padding-bottom: 66.6666666%!important;
          }
          .col.type-project .ph img{
            position: absolute!important;
            top: 0!important;
            left: 0!important;
            width: 100%!important;
            height: 100%!important;
            object-fit: cover!important;
          }
          

          try this please

          1 Reply Last reply
          0
          • R
            R
            robsdonatini
            wrote on last edited by
            #5

            it works! thanks

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