Title: Vertical align inside widget
Last modified: August 31, 2016

---

# Vertical align inside widget

 *  [lauratraveler](https://wordpress.org/support/users/lauratraveler/)
 * (@lauratraveler)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/vertical-align-inside-widget/)
 * Hi,
    I have a row with 2 widgets. One of the widgets has some text, the other
   an image. The image is larger than the text, so I would like to vertically center
   both text and image so they would show nicely on the page. I managed to do this
   in Appearance > Custom CSS by adding
 *     ```
       #pgc-x-x-x.panel-grid-cell {
           display: inline-block;
           float: none !important;
           vertical-align: middle;
       }
       ```
   
 * But this means this CSS is loaded on every single page of my blog while I only
   need it on 1 page. I already have a lot of CSS and I don’t want to add even more
   where not necessary.
 * So my question is… what am I suppose to use in Widget Style > Attributes > CSS
   Style to get the same result? I tried using the above code but it doesn’t work.
 * Here’s an example – see the text and image towards the buttom – [http://www.travelersuniverse.com/welcome](http://www.travelersuniverse.com/welcome)
 * Thank you!
 * [https://wordpress.org/plugins/siteorigin-panels/](https://wordpress.org/plugins/siteorigin-panels/)

The topic ‘Vertical align inside widget’ is closed to new replies.

 * ![](https://ps.w.org/siteorigin-panels/assets/icon.svg?rev=2556869)
 * [Page Builder by SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/siteorigin-panels/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/siteorigin-panels/)
 * [Active Topics](https://wordpress.org/support/plugin/siteorigin-panels/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/siteorigin-panels/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/siteorigin-panels/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lauratraveler](https://wordpress.org/support/users/lauratraveler/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/vertical-align-inside-widget/)
 * Status: not resolved