Title: Center align for 50% width
Last modified: July 14, 2021

---

# Center align for 50% width

 *  Resolved [jamesburgh](https://wordpress.org/support/users/jamesburgh/)
 * (@jamesburgh)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/center-align-for-50-width/)
 * I added CSS
 * `opacity: 0.5;
    max-width: 50%; align-self: center;’
 * I need the first two lines. How can I get banner to center align?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcenter-align-for-50-width%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [rpetersen29](https://wordpress.org/support/users/rpetersen29/)
 * (@rpetersen29)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/center-align-for-50-width/#post-14669285)
 * If you enable but hide the banner it will helpe me debug, but you can try `text-
   align: center;` and see if that works.
 *  Thread Starter [jamesburgh](https://wordpress.org/support/users/jamesburgh/)
 * (@jamesburgh)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/center-align-for-50-width/#post-14670047)
 * It’s enabled again. Text align didn’t work. Auto margins didn’t either. Thanks
   for your help.
 *  Plugin Author [rpetersen29](https://wordpress.org/support/users/rpetersen29/)
 * (@rpetersen29)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/center-align-for-50-width/#post-14676670)
 * Ah i see what you’re trying to do. You will need these in Simple Banner Custom
   CSS .simple-banner{ box:
 *     ```
       left: 50%;
       transform: translate(-50%, 0%);
       ```
   
 *  Thread Starter [jamesburgh](https://wordpress.org/support/users/jamesburgh/)
 * (@jamesburgh)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/center-align-for-50-width/#post-14676777)
 * That worked. Thanks!
 *  Plugin Author [rpetersen29](https://wordpress.org/support/users/rpetersen29/)
 * (@rpetersen29)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/center-align-for-50-width/#post-14676804)
 * Great! Sorry for the delay.
 *  Thread Starter [jamesburgh](https://wordpress.org/support/users/jamesburgh/)
 * (@jamesburgh)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/center-align-for-50-width/#post-14676832)
 * No worries. That was fast enough.

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

The topic ‘Center align for 50% width’ is closed to new replies.

 * ![](https://ps.w.org/simple-banner/assets/icon-256x256.png?rev=1198700)
 * [Simple Banner - Easily add multiple Banners/Bars/Notifications/Announcements to the top or bottom of your website](https://wordpress.org/plugins/simple-banner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-banner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-banner/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-banner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-banner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-banner/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [jamesburgh](https://wordpress.org/support/users/jamesburgh/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/center-align-for-50-width/#post-14676832)
 * Status: resolved