__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
---
layout: docs
title: Embeds
description: Create responsive video or slideshow embeds based on the width of the parent by creating an intrinsic ratio that scales on any device.
group: utilities
toc: true
---
## About
Rules are directly applied to `<iframe>`, `<embed>`, `<video>`, and `<object>` elements; optionally use an explicit descendant class `.embed-responsive-item` when you want to match the styling for other attributes.
**Pro-Tip!** You don't need to include `frameborder="0"` in your `<iframe>`s as we override that for you.
## Example
Wrap any embed like an `<iframe>` in a parent element with `.embed-responsive` and an aspect ratio. The `.embed-responsive-item` isn't strictly required, but we encourage it.
{{< example >}}
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
</div>
{{< /example >}}
## Aspect ratios
Aspect ratios can be customized with modifier classes. By default the following ratio classes are provided:
```html
<!-- 21:9 aspect ratio -->
<div class="embed-responsive embed-responsive-21by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 4:3 aspect ratio -->
<div class="embed-responsive embed-responsive-4by3">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 1:1 aspect ratio -->
<div class="embed-responsive embed-responsive-1by1">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
```
Within `_variables.scss`, you can change the aspect ratios you want to use. Here's an example of the `$embed-responsive-aspect-ratios` list:
```scss
$embed-responsive-aspect-ratios: (
(21 9),
(16 9),
(4 3),
(1 1)
) !default;
```
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| _index.md | File | 78 B | 0777 |
|
| borders.md | File | 2.4 KB | 0777 |
|
| clearfix.md | File | 915 B | 0777 |
|
| close-icon.md | File | 365 B | 0777 |
|
| colors.md | File | 2.68 KB | 0777 |
|
| display.md | File | 3.88 KB | 0777 |
|
| embed.md | File | 1.87 KB | 0777 |
|
| flex.md | File | 22.48 KB | 0777 |
|
| float.md | File | 1.67 KB | 0777 |
|
| image-replacement.md | File | 968 B | 0777 |
|
| interactions.md | File | 814 B | 0777 |
|
| overflow.md | File | 1006 B | 0777 |
|
| position.md | File | 1.38 KB | 0777 |
|
| screen-readers.md | File | 596 B | 0777 |
|
| shadows.md | File | 740 B | 0777 |
|
| sizing.md | File | 2.13 KB | 0777 |
|
| spacing.md | File | 3.95 KB | 0777 |
|
| stretched-link.md | File | 4.34 KB | 0777 |
|
| text.md | File | 4.15 KB | 0777 |
|
| vertical-align.md | File | 1.25 KB | 0777 |
|
| visibility.md | File | 914 B | 0777 |
|