HTML CSS examples for CSS Layout:Responsive Layout
Responsive iframe with fixed div beneath it
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w ww . j a va2 s . c o m--> background-color:Chartreuse; color:yellow; margin:0; } #iframe-container { height:calc(100vh - 21px); width:100%; } #iframe-container iframe { width:100%; height:100%; border:0px; } #bottom-bar { width:100%; height:21px; background-color:blue; } #more-stuff { width:100%; height:401px; background-color:pink; } </style> </head> <body> <div id="iframe-container"> <iframe src="https://www.youtube.com/embed/OYbXaqQ3uuo?autoplay=1&cc_load_policy=0&controls=0&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0"></iframe> </div> <div id="bottom-bar"> Lorem ipsum d </div> <div id="more-stuff"></div> </body> </html>