Title: [Plugin: FitVids for WordPress] Set a max width?
Last modified: August 20, 2016

---

# [Plugin: FitVids for WordPress] Set a max width?

 *  Resolved [GoldFlux](https://wordpress.org/support/users/goldflux/)
 * (@goldflux)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-fitvids-for-wordpress-set-a-max-width/)
 * This plug works great. Only thing is that the videos literally take up the full
   width of the post. Any way to set a max width?
 * [http://wordpress.org/extend/plugins/fitvids-for-wordpress/](http://wordpress.org/extend/plugins/fitvids-for-wordpress/)

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

 *  Thread Starter [GoldFlux](https://wordpress.org/support/users/goldflux/)
 * (@goldflux)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-fitvids-for-wordpress-set-a-max-width/#post-3081382)
 * Actually this didn’t work. It messed with the video’s proportions.
 * ———————
    It’s okay. I used this and it works …
 *     ```
       div.post-body p object {
       	max-width: 70%;
       	padding: 0;
       }
       ```
   
 *  Plugin Author [Kevin Dees](https://wordpress.org/support/users/kevindees/)
 * (@kevindees)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-fitvids-for-wordpress-set-a-max-width/#post-3081509)
 * css is the solution for sure.
 *  [Buovjaga](https://wordpress.org/support/users/buovjaga/)
 * (@buovjaga)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-fitvids-for-wordpress-set-a-max-width/#post-3081571)
 * Here’s a pull request with this type of functionality: [https://github.com/davatron5000/FitVids.js/pull/19](https://github.com/davatron5000/FitVids.js/pull/19)
   
   I took the latest commit and replaced the plugin js with it (note it has a maxWidthDefault
   parameter).
 *  [Chad Warner](https://wordpress.org/support/users/chad-warner/)
 * (@chad-warner)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-fitvids-for-wordpress-set-a-max-width/#post-3081617)
 * You can set a max-width for the container. For example, on a page of videos, 
   you could use
 *     ```
       .post-12 .entry-content {
           max-width: 500px; /* set explicit width of container, because fitvids makes videos 100% width */
       }
       ```
   
 * If you can’t do that because the videos are mixed with other content, this CSS
   gets pretty close. In this example, I want my videos to have a max-width of 500px
   and max-height of 281px, but you can change these to the sizes you want.
 *     ```
       .fluid-width-video-wrapper { /* fitvids */
           padding-top: 281px !important; /* override fitvids-generated padding; too much padding at full size */
       }
       .fluid-width-video-wrapper iframe { /* fitvids */
           max-width: 500px; /* prevent videos from stretching too wide */
           max-height: 281px;
       }
       ```
   

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

The topic ‘[Plugin: FitVids for WordPress] Set a max width?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fitvids-for-wordpress_7e847f.svg)
 * [FitVids for WordPress](https://wordpress.org/plugins/fitvids-for-wordpress/)
 * [Support Threads](https://wordpress.org/support/plugin/fitvids-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/fitvids-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fitvids-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fitvids-for-wordpress/reviews/)

## Tags

 * [fitvids](https://wordpress.org/support/topic-tag/fitvids/)
 * [video](https://wordpress.org/support/topic-tag/video/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * 4 replies
 * 4 participants
 * Last reply from: [Chad Warner](https://wordpress.org/support/users/chad-warner/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-fitvids-for-wordpress-set-a-max-width/#post-3081617)
 * Status: resolved