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. iframe full size & responsive

iframe full size & responsive

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 948 Views 1 Watching
  • 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.
  • V
    V
    vernandel
    wrote on last edited by vernandel
    #1

    hi there,
    i want to create a landingpage with an iframe.
    it should be full size & responsive.
    it is working at a regular html site:
    http://klubberlin.de/COOKIESWORLD.html

    when i use the same coding in laytheme the i frame is too big. you can see it that the logo (left top "COOKIESWORLD") and after click the play button the menu at bottom is missing:
    https://360style.de/test_wrapper-copy/

    this is the code i used:

    .video-wrapper {
    position: relative;
    padding-bottom: 100%;
    padding-top: 0;
    overflow: hidden;
    }

    .video-wrapper iframe,
    .video-wrapper object,
    .video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    }

    <div class="video-wrapper">
    <iframe width="100%" height="100%" src="https://my.mpskin.com/de/tour/2znh24ebh" frameborder="0" allowfullscreen></iframe>
    </div>

    could you please help me with this
    thank you
    g.

    Bildschirmfoto 2023-04-29 um 08.44.57.png Bildschirmfoto 2023-04-29 um 08.45.09.png

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

      i see!

      try this css instead:

      .video-container2 {
          position: relative;
          padding-bottom: 100vh;
          overflow: hidden;
      }
      .video-container2 iframe,
      .video-container2 object,
      .video-container2 embed {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100vh;
      }
      
      V 1 Reply Last reply
      0
      • arminunruhA arminunruh

        i see!

        try this css instead:

        .video-container2 {
            position: relative;
            padding-bottom: 100vh;
            overflow: hidden;
        }
        .video-container2 iframe,
        .video-container2 object,
        .video-container2 embed {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
        }
        
        V
        V
        vernandel
        wrote on last edited by
        #3

        @arminunruh
        THANK YOU! GREAT:
        https://360style.de/video-wrapper/

        jut 1 more thing:
        how to get ridd of the scrollbar on the right? there is nothing to scroll...

        all the best
        g

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

          html {
          overflow-y: auto;
          }

          V 1 Reply Last reply
          0
          • arminunruhA arminunruh

            html {
            overflow-y: auto;
            }

            V
            V
            vernandel
            wrote on last edited by vernandel
            #5

            @arminunruh
            hi armin, thank so so far.
            i still have the same problem with the mobile version. (https://360style.de/cookiesworld/) part of the logo is cut off, do you know why?

            also in the mobile version same url:
            https://360style.de/cookiesworld/

            if click on the iframe button it opens a new window. i would like to have it in the same window. i cant find a documentary with iframes.

            thank you so much
            götz

            mobile.jpeg

            V 1 Reply Last reply
            0
            • V vernandel

              @arminunruh
              hi armin, thank so so far.
              i still have the same problem with the mobile version. (https://360style.de/cookiesworld/) part of the logo is cut off, do you know why?

              also in the mobile version same url:
              https://360style.de/cookiesworld/

              if click on the iframe button it opens a new window. i would like to have it in the same window. i cant find a documentary with iframes.

              thank you so much
              götz

              mobile.jpeg

              V
              V
              vernandel
              wrote on last edited by
              #6

              @arminunruh

              hey, did you see my last post/question?
              thank you
              g.

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

                use this css instead:

                .video-wrapper {
                position: relative;
                padding-bottom: 100svh;
                overflow: hidden;
                }

                .video-wrapper iframe, .video-wrapper object, .video-wrapper embed {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100svh;
                }

                the difference is we dont use vh, but we use svh

                so anywhere you used 100vh, just use 100svh
                i see i posted some css for you to use here, but i think you may have also used some of your own css, so the gist of it is change your css to use 100svh instead of 100vh anywhere you see 100vh

                if click on the iframe button it opens a new window. i would like to have it in the same window. i cant find a documentary with iframes.

                i think this should work in the same window. this might be an issue with the website you are embedding with the iframe

                1 Reply Last reply
                1

                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
                L
                lstark
                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