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. Browser Height in relation to Row Height

Browser Height in relation to Row Height

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 474 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.
  • T Offline
    T Offline
    tinjessen
    wrote on last edited by
    #1

    Hi there,

    I am using "browser height as row height" quite often at the beginning of a project page, but I would like the row not to have 100% of the height of the browser window, but 100% -48px, in order to show a little bit (48px) of the next content below, so that the user will know that he/she has to scroll down. Is there a way to do this?

    Best regards,
    tin

    1 Reply Last reply
    0
    • edgrbnzE Offline
      edgrbnzE Offline
      edgrbnz
      wrote on last edited by edgrbnz
      #2

      I thought this would be easy,…

      Assign a class to the row in question (I called it _80vh in my example below).

      Then I tried something along these lines to define that the viewport height is just 80% instead of 100% (which is what Use Browser Height For Row Height is doing):

      ._80vh{
          height: 80vh !important;
      }
      

      Unfortunately that one doesn’t stick. The 100vh from Lay’s markup seems to be stronger still.
      I’m sure @mariusjopen can point out my error here.

      ✦ ✦ ✦

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tinjessen
        wrote on last edited by
        #3

        Thanks for trying though! Would be great if someone knows a solution.

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

          Dear @tinjessen
          it should work.

          Give it an ID or CLASS and then use a CSS like this:

          .CLASS {
              height: calc(100vh - 40px);
          }
          

          Do not activate the browser-height = window-height.

          Best!

          Marius

          www.mariusjopen.world

          edgrbnzE 1 Reply Last reply
          1
          • mariusjopenM mariusjopen

            Dear @tinjessen
            it should work.

            Give it an ID or CLASS and then use a CSS like this:

            .CLASS {
                height: calc(100vh - 40px);
            }
            

            Do not activate the browser-height = window-height.

            Best!

            Marius

            edgrbnzE Offline
            edgrbnzE Offline
            edgrbnz
            wrote on last edited by edgrbnz
            #5

            @mariusjopen said in Browser Height in relation to Row Height:

            Do not activate the browser-height = window-height.

            That’s the trick❗️😀
            Only thing I was experiencing with this while testing is that the placed image is no longer aligned in the middle although the option is set to do so.

            0_1558604182374_Edit_Page_‹USE—_WordPress.jpg

            ✦ ✦ ✦

            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
            A
            alasdair17
            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