hi there i enjoyed trying out this platform but when i tried out embedding youtube there were some issues with responsive design. i had tried width=100% but it didn’t seem to be the best solution as it makes a small video on desktop.
i was wondering if there is another way to embed media on write.as in a user-friendly way that will also be mobile responsive?
It seems to work just fine even in mobile view on this one. All I do is just paste the link to the video. I was trying to upload a screenshot but it wouldn’t let me. So just head over to the site and enable browser dev tools and turn on mobile view.
In my other blog, I would actually copy and paste the embed code from YouTube itself, but I have specific responsive CSS for that one.
Hi dino, that is what i’m looking for - to be able to just post a link and it turns into a video like how substack works. but in my case i paste a link to youtube, and it just renders as a link on the front end of the post.
Then the next part is how to make use of the custom css. To do so, you have to wrap the YouTube embed code with a div that points to the video-container class. Like so: