James Basoo on Nostr: lamp Nice! Yeah, positioning absolutely means it's not in the natural flow of content ...
lamp (npub1d8y…g8p7) Nice! Yeah, positioning absolutely means it's not in the natural flow of content so the parent element treats it as if it's not there and collapses.
Adding `width: 100%;` to the iframe would make it fill the width of the body. That's where you'd need to maintain the aspect ratio with `aspect-ratio: 16/9;`
Published at
2023-10-15 06:57:44Event JSON
{
"id": "160c598f9bd7464929ed9bf114a589156b7f9304e946b97c7d784bc59dcd2b3a",
"pubkey": "0e92c1c61ef210708310f4b6be7f3052a10f379c3d1151e56d6ba67d6c056ef2",
"created_at": 1697353064,
"kind": 1,
"tags": [
[
"p",
"69c8971d2ad8c30a72bfc719a9941383205e7e0b274365dac90bdcccdf20ed5d",
"wss://relay.mostr.pub"
],
[
"e",
"6ce1466199541bbdc95d25356eb77f468a63582b1be9a2f95155eba3b847dd0c",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.social/users/Jbasoo/statuses/111237730456053095",
"activitypub"
]
],
"content": "nostr:npub1d8yfw8f2mrps5u4lcuv6n9qnsvs9ulstyapktkkfp0wveheqa4wsrvg8p7 Nice! Yeah, positioning absolutely means it's not in the natural flow of content so the parent element treats it as if it's not there and collapses.\n\nAdding `width: 100%;` to the iframe would make it fill the width of the body. That's where you'd need to maintain the aspect ratio with `aspect-ratio: 16/9;`",
"sig": "431edcd4004a4d3f6d1f80cbb4ce6dcd8d1beef5cd5023a2108be0f08de77ca60142cf87397fcfb2cd8229e75553818721a07f881433d44dec6924f5725db9e7"
}