Jump to content

Video width on mobile display


stoo_s
 Share

Recommended Posts

Here I go with my first of many, many questions this afternoon. I've used HTMLBlock to add a video to the Top Right area of my homepage and it displays perfectly on laptop and tablet as I've set the width and height to the same as the jpeg below. However, on the mobile site it's too wide and overflows beyond the width of everything else. I've tried to add a container div to the embed code and then added some code in the global.css file (as per instructions here: http://coolestguidesontheplanet.com/videodrome/youtube/) but the video ended up 1px wide between the slider and it's original place. I realise that getting video to be responsive on a mobile site is a giant pain in the ass but would be grateful for any help with this. My homepage is http://www.thelearningemporium.co.uk/shop/

 

Thanks in advance

 

Stuart

Share this post


Link to post
Share on other sites

Hi Enrique,

 

Thanks for your help but I've not managed to get it working. I've added the CSS to global.css and have disabled the HTMLblock but when I try to add the code to themeconfigurator I'm being met with 'Invalid Content.' I've gone to 'Add Item' in back office and then added the suggested code to the 'HTML' block after selecting 'Top' Hook from the drop down menu. Should I be adding your code directly to a css file instead?

 

Thanks,

 

Stuart

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More