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. Row Image Background: no cropping

Row Image Background: no cropping

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 271 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.
  • I Offline
    I Offline
    Ilina Catana
    wrote on last edited by
    #1

    Dear @mariusjopen,

    on the home page of my site I use a fullscreen image (Row image Background + Cover option).

    This image begins with a red semi-circle.
    When my window is a certain width, the beginning of the image is cut off and this first red half-dot disappears.
    My question: is it possible to force the image to always start at the top of my window?

    That's what I tried to code:

    html.objectfit.background-image img {
    object-fit: unset!important;
    width: 100%!important;
    height: auto!important;
    position: absolute!important;
    left: 0!important;
    top: 0!important;
    }

    With this code, the image starts at the top of my browser regardless of the size of my window.
    Unfortunately under the picture is a large white banner (see picture below).
    I tried to remove this space by changing the "height" setting but unfortunately it doesn't work.

    Website url: https://seedbiosciences.com

    Can you please help me?

    Thanks in advance!

    Ilina
    0_1570103437689_Home_Exemple.png

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

      Dear @Ilina-Catana
      you could try

      .background-image img {
      object-fit: cover !important;
      width: 100vw !important;
      height: 100vh !important;
      position: absolute !important;
      left: 0px !important;
      top: 0px !important;
      }
      

      Hope it works!

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ilina Catana
        wrote on last edited by
        #3

        Dear @mariusjopen,

        thanks a lot for your answer and your time!

        I tried it. The page is now online: https://seedbiosciences.com/

        When I reduce the size of my browser window, the image continues to be cropped.
        As if it were centered and the window cut the top and bottom of the image when the size of the window is reduced.
        Do you have any idea where this came from?

        0_1572626482139_Window_Fullscreen.png
        0_1572626492125_Window_Smaller_Height.png

        Thanks a lot for your help!

        Best!

        Ilina

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

          Dear @Ilina-Catana
          probably with CUSTOM CSS you could overwrite this.

          The image background function is not developed for this exact case.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Ilina Catana
            wrote on last edited by
            #5

            Dear @mariusjopen,

            Alright, I'll keep trying :)

            Thank you!

            Ilina

            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