Support » Plugin: Progress Bar » Centering Progress Bar

  • Hi,

    I am trying to center the progress bar on my page like this:

    <center>
    [wppb progress=50 percent=inside]
    </center>

    The Progress Bar is centered now, so it actually works. But the animation also starts from the middle – spreading to the outer border of the bar. Looks kind of funny, but it’s not what i have expected 🙂

    Is there a way to solve this issue?

    http://wordpress.org/extend/plugins/progress-bar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Chris Reynolds

    (@jazzs3quence)

    Try

    <div style="width: 100%; text-align: center;">
    [wppb progress=50 percent inside]
    </div>

    or do [wppb progress=50 percent=inside fullwidth=full] and it will take the full width of the container (content area or wherever you put the progress bar) and it won’t matter if it’s centered or not.

    Thx for your help. This didn’t work:

    <div style="width: 100%; text-align: center;">
    [wppb progress=50 percent inside]
    </div>

    It just stays left-aligned. I also thought about setting its width to 100%, but i simply don’t like it this way.

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    Okay, then, if you can, try adding this to your CSS:

    .wppb-wrapper {
         margin: 0 auto;
    }

    The thing is, I think we’re going to be fighting with your theme’s CSS on this one because if you look at my demo page, all of my progress bars are centered and all I did was use the center align button in the visual editor (which adds a <div class="aligncenter"> wrapper to the contents.

    http://museumthemes.com/progress-bar/

    Didn’t work either…
    But you are definitely right, I am fighting against my theme – it’s the “Responsive” theme, which is very confortable but restrictive at the same time. If I find a solution, I’ll post it here.

    Thanks anyway.

    Plugin Author Chris Reynolds

    (@jazzs3quence)

    This worked for me (in Chrome) for centering the progress bar in Responsive:

    .wppb-wrapper {
         margin: auto;
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Centering Progress Bar’ is closed to new replies.