Is there any way to make Youtube embeds smaller?

As you can see,the Youtube embed takes up the entire topic body. I believe this is happening, because I’ve widened the topic body width and d-max width using CSS. I’m using the Default discourse theme.

Ideally, I’d like for Youtube embeds to appear much smaller within the topic body.

Is there any way to achieve this, possibly using CSS, without sacrificing the wider width of the topic body?

Thanks!

Hi, welcome to Meta! :wave:

You can try this CSS:

.lazy-video-container {
    height: auto;
    padding: 0;
    max-width: 500px;  /* adjust here, use the unit you want */
}
1 Like

This worked! Thank you so much!

1 Like