Title: using a table and table cell
Last modified: August 22, 2016

---

# using a table and table cell

 *  Resolved [aaronbennett2097](https://wordpress.org/support/users/aaronbennett2097/)
 * (@aaronbennett2097)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/using-a-table-and-table-cell/)
 * Loving you’r plugin, I use it on EVERY site I create! I love the simplicity and
   elegance!
 * I am trying to modify the layout a bit to use a table and table-cell, I basically
   want to try and vertically align the text within the feed, so if the div I’ve
   got it in is 300px (for example) the text is in the middle regardless of the 
   amount of lines the tweet takes up… hope you follow me so far…
 * I’ve used divs and p’s and using css, I’ve made the div into a table, and the
   p into a table-class, this works great on the first tweet, but as soon as the
   next one loads (regardless of it rotating or fading) it seems to ignore the class
   I’ve set, eve n thought I’ve added !important.
 * Totally understand if this is out of your area of advice, I may have to resort
   to using padding, but making it centre vertically would make this uber sweet!!
   Any advice would be appreciated.
 * Thanks again for your plugin!!
 * [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)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/using-a-table-and-table-cell/#post-5932977)
 * Thank you for your kind words.
 * It’s hard to judge how to do this on CSS without seeing the site – although the
   more specific you get with your CSS identifiers, the better results you will 
   get. What are you currently using? Something like:
 *     ```
       .rotatingtweet p.rtw_main {
          text-align: center;
       }
       ```
   
 * ?
 * An alternative is to set `official_format='custom'` and go with a function in
   your theme’s `functions.php` file – something like:
 *     ```
       function rotatingtweets_display_override($args, $tweetuser, $main_text, $twitter_object, $twitterlocale, $targetvalue, $retweeter, $show_media, $nextprev) {
       	$result = "<table><tr><td>$main_text</td></tr></table>";
       	return $result;
       }
       ```
   
 *  Thread Starter [aaronbennett2097](https://wordpress.org/support/users/aaronbennett2097/)
 * (@aaronbennett2097)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/using-a-table-and-table-cell/#post-5933050)
 * AMAZING, went the custom format route, took 5 mins to implement and works perfectly!!
 * I don’t think I’ll ever use another twitter feed plugin ever again!
 * Thank you so much!
    Aaron

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

The topic ‘using a table and table cell’ 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: [aaronbennett2097](https://wordpress.org/support/users/aaronbennett2097/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/using-a-table-and-table-cell/#post-5933050)
 * Status: resolved