Title: Auto height when using shortcode
Last modified: September 1, 2016

---

# Auto height when using shortcode

 *  Resolved [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-height-when-using-shortcode/)
 * Hi,
 * I use rotating tweets with a shortcode at a visual composer and on mobile devices
   the auto height isn´t set for the .rotatingtweets div, only for the tweets itself.
   My CSS looks like:
 *     ```
       .rotatingtweets, div.rotatingtweet, .rtw_main {
       	width:100% !important;
       	min-height:50px;
       }
       div.rotatingtweets_format_0 p.rtw_main {
       	padding: 10px 50px;
       }
       .rotatingtweets, rotatingtweet, rotatingtweets_format_0 {
       	height: auto !important;
       }
       .rotatingtweets a:hover {
       	color:#fff;
       }
       ```
   
 * How can I set height:auto for the main div?
 * Regards,
 * [https://wordpress.org/plugins/rotatingtweets/](https://wordpress.org/plugins/rotatingtweets/)

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

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-height-when-using-shortcode/#post-7561845)
 * Hi Ben,
 * Before piling into CSS, what happens if you change version of the JavaScript 
   on the settings page?
 * Best wishes,
 * Martin
 *  Thread Starter [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * (@yoursql719)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-height-when-using-shortcode/#post-7561846)
 * Hi,
 * yes with beta it works!
 * Regards,

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

The topic ‘Auto height when using shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rotatingtweets.svg)
 * [Rotating Tweets (Twitter widget and shortcode)](https://wordpress.org/plugins/rotatingtweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rotatingtweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rotatingtweets/)
 * [Active Topics](https://wordpress.org/support/plugin/rotatingtweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rotatingtweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rotatingtweets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [benhartwich](https://wordpress.org/support/users/yoursql719/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/auto-height-when-using-shortcode/#post-7561846)
 * Status: resolved