Support » Plugins » [Plugin: WPaudio MP3 Player] Centering player?

  • Recently started using this plugin and it’s great! One question: has anyone had success figuring out how to center the player horizontally? I recently change my theme so all images are centered, and it’d be cool if the player matched. I messed around with the CSS a bit but it seems pretty complicated — thought I’d see if anyone else has already done this.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Ah, must be too early in the morning — there’s actually a pretty simple way to do this. Just add this to your theme’s stylesheet:

    .wpa_container { width: 300px; margin-left: auto !important; margin-right: auto !important;}

    Not totally ideal since it makes your titles wrap if they’re over 300px (you can also change that to what width you want, btw) but pretty sure you have to define a width in order to get CSS to do margin-auto centering, and the player handles the wrapping gracefully.

    Any improvements/suggestions on this are welcome.

    Great plugin!

    TRMW, the new layout in the next release will make the player an inline element, so it’ll behave according its parent’s text-align directive. Glad you took care of it in the meantime!

    Thanks for using it too.

    Sounds great Todd! Thanks for the response, and the plugin.

    i still have trouble with the centering of wpaudio player…
    how to fix this problem:

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WPaudio MP3 Player] Centering player?’ is closed to new replies.