Title: Width error in my mobile theme
Last modified: September 1, 2016

---

# Width error in my mobile theme

 *  [nikhilcb](https://wordpress.org/support/users/nikhilcb/)
 * (@nikhilcb)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/width-error-in-my-mobile-theme/)
 * hello, my site is streetillustrated.com which is using worldwide theme.
    my theme
   was working correctly till yesterday. but from today suddenly the top video in
   my home page has become wide, and because of that extra space is created for 
   remaining contents in the page. I’m guessing it has to do with the css. can anyone
   help me with this problem thank you

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Bijingus](https://wordpress.org/support/users/bijingus/)
 * (@bijingus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/width-error-in-my-mobile-theme/#post-7507536)
 * Add this code to style.css in your child theme, or [install this plugin](https://en-ca.wordpress.org/plugins/simple-custom-css/)
   and insert into it’s code editor in the WordPress admin area.
 *     ```
       .single-page iframe{
         height: 364px;
       }
       ```
   
 * This is a really quick and **easy** fix and the video will be a bit tall on mobile
   devices.
 * If you want, here’s a javascript solution. This will resize all iframes though
   and is only appropriate for video dimensions. If you have other types of iframes
   on your site it will make them weird sizes.
 *     ```
       function resizeIframe(selector){
       	var iframe = $(selector);
       	var w = iframe.parent().width();
       	var h = w * 0.5625;
       	iframe.attr('width', w);
       	iframe.attr('height', h);
       }
   
       jQuery(document).ready(function(){
               resizeIframe('iframe');
       });
       ```
   
 * You can paste this code into a plugin that allows you to add javascript, or into
   a javascript file if you’re good with that sort of thing.
 * Myles
    [http://mylesenglish.com](http://mylesenglish.com)
 *  Thread Starter [nikhilcb](https://wordpress.org/support/users/nikhilcb/)
 * (@nikhilcb)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/width-error-in-my-mobile-theme/#post-7507809)
 * hello, the 1st css code solved the problem, although the video appears bit height,
   but its ok.
    Thank you [@bijingus](https://wordpress.org/support/users/bijingus/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Width error in my mobile theme’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [theme error](https://wordpress.org/support/topic-tag/theme-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [nikhilcb](https://wordpress.org/support/users/nikhilcb/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/width-error-in-my-mobile-theme/#post-7507809)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
