I have this CSS defined with my page:
.content { background-image: url("img/bg.jpg"); width: 100%; } .exhibit { width: 100%; height: 100%; text-align: center; } .yt-embed { width: 560px; height: 315px; position: relative; top: 50%; } The DIV with .yt-embed is inside one with .exhibit, and the DIV with .exhibit is inside one with .content.
My issue is that the "top" property in my .yt-embed class is having absolutely no effect. However, it does work when it is set to a pixel value, instead of a percentage.
.contentdivfor the percent unit to derive from.