Title: Css (center, padding)
Last modified: March 8, 2022

---

# Css (center, padding)

 *  Resolved [zack06007](https://wordpress.org/support/users/zack06007/)
 * (@zack06007)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/css-center-padding/)
 * Hello
 * Each update I change this line in the file : relatedpost > Assets>Front.css
 * I enter 70 and 50 px for center my Related posts
    This morning, i enter the same
   value and no change The related posts are not center
 * It’s not possible to have this option (left, center, right) on admin of related
   posts for the future.
 * Now how change my css to have a center related posts?
 * thanks

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

 *  Plugin Support [Muhammad Arslan](https://wordpress.org/support/users/wparslan/)
 * (@wparslan)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/css-center-padding/#post-15440316)
 * Hi [@zack06007](https://wordpress.org/support/users/zack06007/)
 * Thank you for writing to us.
    This is not the optimal way to modify the CSS.
 * If you want the text to align in the center of each related post then just copy
   and paste the following CSS in the child theme or in WordPress Customizer, so
   your CSS changes won’t be lost no matter how many changes/Updates come from the
   theme or plugin.
 *     ```
       .relpost-custom-block-single{
           text-align: center;
       }
       ```
   
 * [Helping Screenshot](https://d.pr/i/K1LLIf)
 * Your feature request is also received at our support forum.
    If you need any 
   further assistance do let us know.
 * Thank you.
 *  Thread Starter [zack06007](https://wordpress.org/support/users/zack06007/)
 * (@zack06007)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/css-center-padding/#post-15440985)
 * HEllo Muhammad Arslan
    Thanks to help me
 * It’s not this center but i keep your solution also it’s better in my CSS additional
   😀
    I search to insert “padding” (1) and “centrer” (2) the totality of related
   posts like this:
 * [https://zupimages.net/up/22/10/cvm2.png](https://zupimages.net/up/22/10/cvm2.png)
   
   Befor/After
 * Thanks for your help 😀
 * edit: ok i add:
 *     ```
       .relpost-block-container{
       border: 0 none ;
       margin: 50px;
       padding: 50px;
       	}
       ```
   
 * it’s ok thanks a lot!!!!
    -  This reply was modified 4 years, 2 months ago by [zack06007](https://wordpress.org/support/users/zack06007/).
    -  This reply was modified 4 years, 2 months ago by [zack06007](https://wordpress.org/support/users/zack06007/).
 *  Plugin Support [Muhammad Arslan](https://wordpress.org/support/users/wparslan/)
 * (@wparslan)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/css-center-padding/#post-15448357)
 * Hi [@zack06007](https://wordpress.org/support/users/zack06007/)
 * That is great!
 * If you need any further assistance do let us know. 🙂

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

The topic ‘Css (center, padding)’ is closed to new replies.

 * ![](https://ps.w.org/related-posts-thumbnails/assets/icon-256x256.png?rev=1602092)
 * [Related Posts Thumbnails Plugin for WordPress](https://wordpress.org/plugins/related-posts-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/related-posts-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/related-posts-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/related-posts-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/related-posts-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/related-posts-thumbnails/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Muhammad Arslan](https://wordpress.org/support/users/wparslan/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/css-center-padding/#post-15448357)
 * Status: resolved