Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AM74100

Members
  • Joined

  • Last visited

  1. This is my first post. I apologise if the question is very basic. I can't seem to find a resolution to this problem. I am trying to center a Vimeo video IFrame perfectly within a simple black border. The video fits the border height wise but there are white spaces to both the left and the right within the border. I have attached an image. The video is behaving as it should in responsive terms. I am using Bootstrap and my code is as follows: HTML <div class="vimvid"> <div class="container"> <iframe src="https://player.vimeo.com/video/289437293?portrait=0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen> </iframe> </div> </div> CSS .vimvid { padding: 56.25% 0 0 0; position:relative; } .vimvid iframe { position:absolute; top:0; left:0; width:100%; height: 100%; border: 25px solid #000000; border-radius: 25px; } I am trying to center a Vimeo video IFrame perfectly within a simple black border. The video fits the border height wise but there are white spaces to both the left and the right within the border. The video is behaving as it should in responsive terms. I am using Bootstrap and my code is as follows: HTML <div class="vimvid"> <div class="container"> <iframe src="https://player.vimeo.com/video/289437293?portrait=0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen> </iframe> </div> </div> CSS .vimvid { padding: 56.25% 0% 0% 0%; position:relative; } .vimvid iframe { position:absolute; top:0; left:0; width:100%; height: 100%; border: 25px solid #000000; border-radius: 25px; } I want the video to be displayed perfectly centrally within the border without there being white spaces to the left and to the right. How do I achieve this? Thanks in advance for any advice.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.