Title: Slider Image Centered
Last modified: August 31, 2016

---

# Slider Image Centered

 *  Resolved [olivseo](https://wordpress.org/support/users/olivseo/)
 * (@olivseo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-image-centered/)
 * Hello,
    I am trying to make the slider image float to the center, and it is not
   working for me. I have tried:
 *     ```
       .slider-image-container {
           float: center;
       }
       ```
   
 * and
 *     ```
       .slider-image-container {
           float: center !important;
       }
       ```
   
 * and
 *     ```
       .slider-image-container {
          margin: auto;
       }
       ```
   
 * Nothing seems to work for me. Please help!
    Site: [http://www.sophiescleaningservice.com](http://www.sophiescleaningservice.com)

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

 *  [paulwpxp](https://wordpress.org/support/users/paulwp/)
 * (@paulwp)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-image-centered/#post-7146184)
 * Can’t help inspect it because your site is in Coming Soon mode now. But suppose
   your selector is correct, you should try something like this
 *     ```
       .slider-image-container {
           display: block;
           margin: 0 auto;
           float: none;
       }
       ```
   
 *  Thread Starter [olivseo](https://wordpress.org/support/users/olivseo/)
 * (@olivseo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-image-centered/#post-7146186)
 * Sorry, just removed it from maintenance mode. I tried your code, but it doesn’t
   work.
 *  [lelandf](https://wordpress.org/support/users/lelandf/)
 * (@lelandf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-image-centered/#post-7146187)
 * This will work:
 *     ```
       .slider-image-container img {
           margin: 0px auto;
           display: block;
       }
       ```
   
 * Also, `float: center;` is not a valid value. See the [Mozilla Developer Network page on CSS floats](https://developer.mozilla.org/en-US/docs/Web/CSS/float)
   for more information on what you can do with floats.
 *  [paulwpxp](https://wordpress.org/support/users/paulwp/)
 * (@paulwp)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-image-centered/#post-7146188)
 * Try changing the selector to
 *     ```
       .slider-image-container img
       ```
   
 * EDIT: thanks [@lelandf](https://wordpress.org/support/users/lelandf/) , didn’t
   see your reply when I posted mine 🙂
 *  Thread Starter [olivseo](https://wordpress.org/support/users/olivseo/)
 * (@olivseo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-image-centered/#post-7146191)
 * Leland- your code worked. Thank you very much both of you for your help! Much
   appreciated!

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

The topic ‘Slider Image Centered’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/accesspress-basic/3.2.2/screenshot.
   png)
 * Accesspress Basic
 * [Support Threads](https://wordpress.org/support/theme/accesspress-basic/)
 * [Active Topics](https://wordpress.org/support/theme/accesspress-basic/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/accesspress-basic/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/accesspress-basic/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [olivseo](https://wordpress.org/support/users/olivseo/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/slider-image-centered/#post-7146191)
 * Status: resolved