# YouTube嵌入尺寸，再次探讨

**URL:** <https://meta.discourse.org/t/youtube-embed-size-revisited/85385>\
**Category:** Support\
**Created:** [2018年四月15日 19:44 UTC](https://meta.discourse.org/t/youtube-embed-size-revisited/85385 "2018-04-15T19:44:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bts](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bts/32/184556_2.png) [@bts](https://meta.discourse.org/u/bts)\
**Post date:** [2018年四月15日 20:44 UTC](https://meta.discourse.org/t/youtube-embed-size-revisited/85385/2 "2018-04-15T20:44:49Z")

</div>

This is what we have currently to make YouTube embeds span the full post width:

```plaintext
.lazyYT-container {
    height: 0 !important;
    width: 100% !important;
    padding-bottom: 56.25% !important;
}

```

IMO this is a big improvement and something like this should just be the default styling!

Not sure how to do the same for Vimeo (but YouTube accounts for probably like 99% of videos shared on our forum so not something we’ve worried about too much…)

---

_[View the full topic](https://meta.discourse.org/t/youtube-embed-size-revisited/85385)._
