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. Feedback
  3. Zoom in cover image, if aspect ratio doesn't fit image

Zoom in cover image, if aspect ratio doesn't fit image

Scheduled Pinned Locked Moved Feedback
4 Posts 2 Posters 478 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.
  • N Offline
    N Offline
    neunzehnachtneun
    wrote on Jun 9, 2019, 8:04 AM last edited by neunzehnachtneun Jun 11, 2019, 9:18 AM
    #1

    Hi together,
    first of all, I must once again thank you deeply for creating this theme!

    A few days ago, I recognized a minor issue using the cover feature. I use a image with aspect ratio 2/3. If the ratio is wider the image is cropped, so it fits the screen. In opposite if the ratio is narrower, the image shows up fully with a white (or grey) bar underneath.
    Im my opinion it would be better not to fill up the image with a bar but to crop the image left and right instead to fit into the browser.

    I don't know, if this can be solved with css, tried something, but actually I didn't know which class I need to adress.

    Thanks in advance and cheers!
    Sebastian

    PS. If you want to see, what I describe, visit my website and change size of you browser window. ;-)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Jun 10, 2019, 9:41 AM last edited by
      #2

      Dear @neunzehnachtneun
      you can set the image as a background image.
      Then it always fits the screen.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • N Offline
        N Offline
        neunzehnachtneun
        wrote on Jun 10, 2019, 12:23 PM last edited by neunzehnachtneun Jun 10, 2019, 8:23 AM
        #3

        Well, this is an unexpected solution. But it works.
        Thanks!

        1 Reply Last reply
        1
        • M Offline
          M Offline
          mariusjopen
          Global Moderator
          wrote on Jun 12, 2019, 8:52 AM last edited by
          #4

          Dear @neunzehnachtneun
          happy it works!
          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          2
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes

          4/4

          Jun 12, 2019, 8:52 AM


          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
          C
          craigfeldspar
          17 minutes ago
          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.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search