Gabz
Gabz

@manton is there a css (or other way) to make embedded YouTube videos resize to match the “sizing” of the photos posted on Micro.blog/hosted blog. Does that makes sense? So they aren’t wider than the photos and such.

|
Embed
Progress spinner
manton
manton

@Gaby Good question, I’m not sure… You could add CSS like: iframe { width: 100%; } but that’s only a partial solution. I experimented with getting the height to match and it wasn’t quite right.

|
Embed
Progress spinner
skoobz
skoobz

@Gaby Check my custom CSS with my current theme. It look normal on the desktop, but on mobile it ends up squaring the video until it’s played (which it then goes full screen). It’s the closest to reasonable I’ve come up with.

|
Embed
Progress spinner
Gabz
Gabz

@sku_b oh cool! I’ll take a look, hopefully I’ll know what to look for 😁👍🏼

|
Embed
Progress spinner
skoobz
skoobz

@Gaby just look for the iframe tag

|
Embed
Progress spinner
Gabz
Gabz

@manton Apropos of nothing, this worked. It looks better now, at least on mobile which where I was probably most concerned about 😁👍🏼

|
Embed
Progress spinner