HTML CSS examples for CSS Layout:Responsive Layout
Responsive alignment of youtube iframes
<html> <head> <meta name="viewport" content="width=device-width"> </head> <!-- w w w. j a va 2s .c o m--> <body> <style type="text/css"> .wrap_video { text-align:center; margin:16px auto; } .resp_video { display:inline-block; text-align:left; width:34%; margin:6% 6% 6% 6%; min-width:251px; } .resp_video.fixed { width:100px; margin-right:11px; } </style> <div class="wrap_video"> <div id="a" class="resp_video"> <iframe width="350" height="197" src="" frameborder="0" allowfullscreen></iframe> </div> <div id="b" class="resp_video"> <iframe width="350" height="197" src="" frameborder="0" allowfullscreen></iframe> </div> <div id="c" class="resp_video"> <iframe width="350" height="197" src="" frameborder="0" allowfullscreen></iframe> </div> <div id="d" class="resp_video"> Lorem ipsum do <br> <br> <br> <br> </div> </div> </body> </html>