- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Container for embedded content (16:9 aspect ratio) in Bootstrap
Use the .embed-responsive class in Bootstrap to set a container for embedded content.
For 16:9 aspect ratio for the embedded content, use the embed-responsive-16by9 class
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <h2>Eclipse Refactoring</h2> <p>To refactor code in Eclipse, try the below given steps in the video:</p> <div class = "embed-responsive embed-responsive-16by9"> <iframe class = "embed-responsive-item" src = "https://www.youtube.com/embed/YFVV6RAUnNg "></iframe> </div> </div> </body> </html>
- Related Articles
- Container for embedded content in Bootstrap
- Container for Bootstrap 4 card content
- Container for checkboxes in Bootstrap\n
- Container for form input and label with Bootstrap
- Setting the aspect ratio of a 3D plot in Matplotlib
- Add the default styles for the dropdown menu container in Bootstrap
- Sides of two similar triangles are in the ratio 4:9. Areas of these triangles are in the ratio(a) 2:3(b) 4:9(c) 81:16(d) 16:81
- How to change the aspect ratio of an image in JavaFX?
- Show content with Bootstrap
- Hide content with Bootstrap
- How to change the aspect ratio of a plot in ggplot2 in R?
- How to maintain the aspect ratio of an element with CSS?
- Bootstrap 4 .justify-content-* class
- How to scale an Image in ImageView to keep the aspect ratio in Android?
- Create an inline flexbox container in Bootstrap 4

Advertisements