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. fixed sized square video

fixed sized square video

Scheduled Pinned Locked Moved General Discussion
9 Posts 3 Posters 1.5k Views 2 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.
  • E
    E
    emresenoglu
    wrote on last edited by
    #1

    hello all - total beginner in css, so excuse my cluelesness.
    i'm trying to make a video stick to the right side of the page, and to have it dictate the rest of the elements on the page without changing aspect ratio or cropping. meaning that i don't want to see any padding beneath the video when the page is resized, or have the video cut. ideally the aspect ratio would always stay 1:1 and the video would get smaller if the page is of an odd shape. is this possible?

    square vid.jpg

    senoglu.co // archimats.com // imgemim.com // hakiurla.com

    1 Reply Last reply
    0
    • F
      F
      felix_rabe
      wrote on last edited by
      #2

      what would happen if your browser window is also square? there would be no space left for the text, right?

      1 Reply Last reply
      0
      • E
        E
        emresenoglu
        wrote on last edited by
        #3

        Either that or the text could overlap the video.

        senoglu.co // archimats.com // imgemim.com // hakiurla.com

        1 Reply Last reply
        0
        • F
          F
          felix_rabe
          wrote on last edited by
          #4

          you could try "set browser height for row height" for this row in the gridder and then give the video a class and make it "height: 100vh" with custom css for starters.

          1 Reply Last reply
          0
          • E
            E
            emresenoglu
            wrote on last edited by
            #5

            thanks felix, i will try this.

            senoglu.co // archimats.com // imgemim.com // hakiurla.com

            1 Reply Last reply
            0
            • E
              E
              emresenoglu
              wrote on last edited by
              #6

              i've done as you said i believe, however it doesn't work as intended. can you spot what i'm not doing correct? here's a screen capture:

              https://capture.dropbox.com/rgT1jwc5irpngukN

              senoglu.co // archimats.com // imgemim.com // hakiurla.com

              1 Reply Last reply
              0
              • F
                F
                felix_rabe
                wrote on last edited by felix_rabe
                #7

                @emresenoglu try to use that for your custom video class:

                position: absolute;
                top: 0;
                right: 0;
                width: auto;
                height: 100vh;
                aspect-ratio: 1;

                But you have to reflect if this is the best approach webdesign-wise, also considering mobile and tablet layouts.

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

                  do you have a link please?

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

                    right click your row, choose "use browser height for row height"

                    Screenshot 2024-12-20 at 15.04.54.png

                    for top frame and bottom frame use: 0

                    now select your video in your grid, make sure it is aligned
                    Screenshot 2024-12-20 at 15.05.30.png

                    to middle

                    and make sure to use a square video.
                    this way you dont need to use css.

                    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
                    I
                    itsbadjujuju
                    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