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. 100vh carousel on desktop vs. on mobile

100vh carousel on desktop vs. on mobile

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

    Hi
    On the homepage I use a 100vh carousel and a light grey, transparent menu bar which blurs everything in the background.
    With the height being 100vh the carousel on desktop is being shown below the menu bar and there it's slightly blurred. This is how I want it to be.
    On mobile however, the same carousel with a height of also 100vh starts only after the menu bar.

    How can I have the carousel full screen on mobile and the menu bar being displayed on top of that?

    Best, Raphael

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

      hey there!

      lay options → custom css & html

      custom css for mobile:

      body{
      padding-top:0!important;
      }
      
      S 1 Reply Last reply
      0
      • arminunruhA arminunruh

        hey there!

        lay options → custom css & html

        custom css for mobile:

        body{
        padding-top:0!important;
        }
        
        S Offline
        S Offline
        sportklub
        wrote on last edited by sportklub
        #3

        @arminunruh Thanks for your reply, Armin. But that was of course the first thing I tried myself.

        The top part looks now exactly how I want. But, in Chrome (iPhone) the carousel is with that code 50px (Menu bar height) too short in height. Seems like on mobile Lay Theme subtracts the Menu bar height before displaying the carousel with 100vh. Only on desktop, 100vh is really covering 100%.

        Btw. in Safari there is the additional problem that 100vh is not covering 100% of the viewport and there is always a whitespace blow the carousel.

        Best, Raphael

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

          if you hide the whole mobile navbar in customizer this should work

          sry i wont code it to work for your case since its a really unique case

          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
          S
          StudioSchnettker
          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