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

Row Image Background: no cropping

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 900 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
    I
    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
      mariusjopenM
      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
        I
        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
          mariusjopenM
          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
            I
            Ilina Catana
            wrote on last edited by
            #5

            Dear @mariusjopen,

            Alright, I'll keep trying :)

            Thank you!

            Ilina

            1 Reply Last reply
            0

            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