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. General Discussion
  3. align images to horizontal center (with all images having the same height)

align images to horizontal center (with all images having the same height)

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 143 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.
  • P Offline
    P Offline
    pavloradich
    wrote on last edited by pavloradich
    #1

    Hi, I would like to know how to I align images to the horizontal center? There are options align to the top, bottom or vertical center, but not to horizontal center. Struggle to understand why is it not implemented, just like in illustrator, indesign or photoshop.

    I would like to create a long one-page website with all images aligned to the horizontal center and all of them are limited to the same height (meaning that portrait and landscape images all have the same height, just different widths).

    Of course I could try to align them manually in columns, but what if I don't want to follow columns? Considering that they should all have the same height, say: 500px - then some of them will not even be able to match in the requested height and columns at the same time. Do I need to custom code it?

    Screenshot 2023-06-28 at 00.15.37.png Screenshot 2023-06-28 at 00.12.25.png

    Thank you,
    Pavlo

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

      hey!

      good call

      i can create a horizontally center button,
      i'm adding it to my todo-list

      Considering that they should all have the same height, say: 500px

      at the moment, there is no way to make an element have a certain height, because the height of an element is always dependent on how many columns it spans

      P 1 Reply Last reply
      0
      • arminunruhA arminunruh

        hey!

        good call

        i can create a horizontally center button,
        i'm adding it to my todo-list

        Considering that they should all have the same height, say: 500px

        at the moment, there is no way to make an element have a certain height, because the height of an element is always dependent on how many columns it spans

        P Offline
        P Offline
        pavloradich
        wrote on last edited by pavloradich
        #3

        @arminunruh hi! Thanks! Hope you can roll it out soon, I have a few hundreds of images to center :)

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

          xD ok! will work on it soon

          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
          O
          oli
          P
          piranha
          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