twitter-bootstrap embed-responsive not always working - html

I embedded a youtube video to a page using bootstrap's embed-responsive. When I resize the browser to fill the left half of my screen the video resizes correctly but when I resize the browser to fill the right-half of my screen or the top half the video doesn't resize and overlaps other content... Any idea how to fix this/why this is happening?
My code:
I am trying to use bootstrap's responsive-embed to embed a youtube video but for some reason it doesn't show on the page at all. I know it's on the page as I am using a screenreader which reads it and I can play it and hear the sound but visually it doesn't show at all.
Any idea what i'm doing wrong?
my code:
screenshots of the resized page:
https://www.sendspace.com/filegroup/8N0y4wQ5CwHATxM25UavWLvhrs7%2By5Wv

turn out I just had to remove the embed-responsive-item and the col-md-4 from the iframe

Related

Dynamically sized html video with elements directly below

I am making an html webpage with a video in the background and would like to accomplish the following using CSS:
The video keeps its aspect ratio
The video fills the width of the screen
At relatively large window size the whole video is visible
The video has a minimum height (i.e. when the window is shrunk, at a certain size, the whole video is no longer visible).
There are elements positioned directly below the video, dynamically following it if the window is resized
It would also be nice if when the video is invisible it is centered (not crucial).
I've been trying this for ages now and have been able to get most of the points but not all of them; in particular I find the last point (positioning another element directly below) to be hard to combine with the others. I've been using the html video element and CSS.
Is this possible?
You can use a Jquery plugin for this. I recommend looking at this one in particular.
Vide - Jquery Plugin For Fullscreen Background Videos

html5 video fullscreen to restricted div size

Does anyone know how to restrict the HTML5 Video fullsize limit to the portion of the screen instead of the complete screen.
Example: My screen size is 1920 * 1080 where my whole page will be displayed and on top of the page I've a modal dialog with 920 * 800 where I will display the list of videos, when I click on fullscreen of any video it is occupying my whole screen size 1920 * 1080, instead of it I want it to occupy only 920 * 800, which is my modal dialog size. Any thoughts. Any help would be highly appreciated.
You can fullscreen an outer element that contains the tag, instead of making the itself full screen, by using requestFullscreen on the outer element from JavaScript:
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode
Unfortunately, if you enable controls on the video element, it will still have its own fullscreen button too. There might be ways to hide it; here's another question about that topic:
How to hide full screen button of the video tag in HTML5
but it doesn't seem to be possible in all browsers. The best thing is probably to hide all of the video's controls, and implement your own controls (there's open source out there that does this kind of thing, like video.js).

Trying to achieve a "Garage Door" Effect with CSS

I'm building a fairly simple site with just a header centered on the top that sits over a full screen image. Behind the image is a full screen Vimeo video. My goal is to have it so that when I scroll, the image moves up and off the screen to reveal the video behind it, and then continue normal scrolling to any elements below the video. I'm newer to WebDev so I'm really just looking for a place to start. I'm fooling around with some positioning and transtionZ CSS etc. but I can't get it to work.

How to stop Youtube video from overlapping thickbox frame?

I'm using Thickbox to display videos on a website and the youtube video seems to be too large for the thickbox frame. I've tried decreasing the youtube video size but the thick box seems to follow the size of the video because no matter what I adjust the size to I always have this:
http://imgur.com/KJ2kJYr
Notice in the bottom right corner, the video goes outside the frame. Any suggestions are welcome.
Here is the html code for the video. Personal info has been removed (site name, youtube embed, etc.):
<a class="thickbox" href="//www.youtube.com/embed/XXXXXXXXX?rel=0&showinfo=0&controls=0&KeepThis=true&TB_iframe=true&height=400&width=600" title="XXXXXXXXX"><img src="http://www.XXXXXXXXXXX.org/campaign/wp-content/uploads/sites/59/2013/11/XXXXXXXXXX.png"/></a>
I would need the full code to give a complete answer, but based on my experience with other plugins:
Most plugins have very specific styles that are sometimes difficult to override. Give the video a "class" and set the width to width: 100% !important; (or whatever). This should override the defaults set in place by the plugin.

How to put an embedded youtube video over the top of an image (as a frame around the video)

I want to put an embedded youtube video over the top of an image so it looks like there is a frame around the Youtube video. They are perfectly aligned horizontally, but I can't seem to align the video & image vertically. Somehow I need to add padding to the top of the Youtube video so it is lowered into the frame.
I'm using Wordpress and the measurements for the frame fit the video perfectly. I just need to lower the video into the frame.
Any ideas how to lower the Youtube video to make it align correctly inside the Frame?
Thank you!
You can use CSS to apply a margin or padding to the Youtube video HTML element (probably an iframe tag if you are embedding it)
So, your CSS may look something like this, depending on your HTML structure:
iframe { margin-top: 10px; }
You'll need to play around with the value of margin-top to make it align the way you like.
If you post the relevant HTML, I could give you specific CSS to use.