- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hi guys,
I'm embedding a youtube playlist into an embed code box on my weebly site. However I can't make it responsive and it cuts in half when I view it on the mobile preview.
Is there any code to add to the html which will make it responsive so it can be viewed properly on a mobile?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
You could try something like this:
https://www.ostraining.com/blog/coding/responsive-videos/
The only thing you'd need to do is take the CSS code from the last steps, wrap it in style tags, and add that to Settings > SEO > Header code, e.g.
<style> .video-responsive{ overflow:hidden; padding-bottom:56.25%; position:relative; height:0; } .video-responsive iframe{ left:0; top:0; height:100%; width:100%; position:absolute; } </style>

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
What code are you embedding, and on what page of your site, @laazrockit? It's usually easiest to figure out when you can see it in action.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Thanks for the reply. It's the code youtube gave me to embed a playlist. I've pasted the code into an embed code box on a standard weebly page and as you can see from the screenshots below, it displays fine on desktop but is cut on a mobile.
Link to the page on my site: https://theclassicheavymetalvault.weebly.com/thrash-metal.html
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
You could try something like this:
https://www.ostraining.com/blog/coding/responsive-videos/
The only thing you'd need to do is take the CSS code from the last steps, wrap it in style tags, and add that to Settings > SEO > Header code, e.g.
<style> .video-responsive{ overflow:hidden; padding-bottom:56.25%; position:relative; height:0; } .video-responsive iframe{ left:0; top:0; height:100%; width:100%; position:absolute; } </style>
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
It's worked! Thanks so much