Audio Play no longer will center on page.

  • Unknown's avatar

    All of a sudden – about a week or so ago, whenever I use the editor to center my audio player in a post under a centered pic – the player will only show up left-justified. In fact
    I went and looked and all of a sudden ALL of my audio player posts had mysteriously reverted from center justified to left-justified.

    What has happened and how can I make the center justification stick please.?
    Thanks in advance

  • Unknown's avatar

    i would also like to know if this can be fixed.

  • Unknown's avatar

    well just wanted to check to see if anyone responded. This is still a problem: I can’t center the audio bar any longer. TIA

  • Unknown's avatar

    It seems there is a style attribute “align:left” in the audio player tag, probably generated from the tag itself. My suggestion would be to put it in a centered div together with the video instead of using separate centering tags. As a result, the audio player would be aligned left with respect to the video and both centered with respect to te text. (i.e. if you use the visual editor, select both elements at once before centering). You might give it a try

  • Unknown's avatar

    does this work for wordpress.com ?
    i didn’t think we could put div attributes etc in our posts.

    anyway, i don’t think this is the problem.
    my audio players are seen correctly (ie centered) in Safari… but in Firefox and Opera they don’t seem to recognise the style sheet and the player just hangs on the left.

  • Unknown's avatar

    citinite, of course you can in wordpress.com blogs. Try it out before you state that this is not the problem.

  • Unknown's avatar

    Isadora, I have already tried align divs in various formats but they either do not work or are stripped by wordpress.

    Could you be more specific about how they should be written?
    Although, your suggestion only seems to apply to posts which also have a video.

    We want to know how to center the audio player, regardless of what other content is in the post.

    It’s frustrating because in Safari the player is centred because it acknowledges the ‘center’ command in the style sheet. But Firefox fails to do this so we need a fix.

  • Unknown's avatar

    oh, and just to confirm… i’ve tried using the align center command in the visual rich editor as well, but that doesn’t work either.

  • Unknown's avatar

    ok, so i had a look at the source code for one of my pages, and just before the code for the audio player it says:
    <span style=’text-align:left;display:block;’>

    so it seems that it’s aligned left by default

    if i change this text to say:
    <span style=’text-align:center;display:block;’>
    and save it as an htm file, then open that htm file in my firefox browser then the player appears as it should

    but i dont know how to implement this change on the css style sheet or the individual post… if indeed it is possible.

    and i’m assuming that Safari ignores this
    <span style=’text-align:left;display:block;’>
    which is probably a bug on Safari’s part (eventhough this results in the player appearing as i’d like it to!)

    dont know if anyone can suggest a solution?

  • Unknown's avatar

    Hi – I too need a little more specific information. I see that the new dashboard has not corrected the music player’s positioning. I still can’t get it to be centered and I don’t quite understand your explanation Isadora. I need the “Dummies” version of how to correct the problem (LOL)

    Thanks again.

    PS. Aren’t you a Multiplier too ;-) I recognize your avatar.

  • Unknown's avatar

    yay! i found a solution.

    i butchered some code from vodpod…

    all you need to do is add this code before your audio file:
    <span style=”display:block;width:290px;margin:0 auto;”>

    and this code after it:
    </span>

    note… in my example i have used 290px because this works for me… but you can adjust this to suit the dimensions of your own blog

    you can see it in action here:
    http://citinite.wordpress.com/2008/04/08/daylight/

    happy aligning!
    m

  • Unknown's avatar

    just tested it in other browsers… it works in Explorer, Firefox and Safari…. i added a height attribute after the width so it’s now:

    <span style=”display:block;width:290px;height:25px;margin:0 auto;”>

    but the amount of space around the player will differ depending on which browser it’s viewed in.

    Unfortunately this code doesn’t work in Opera… but 3 out of 4 ain’t bad.

  • Unknown's avatar

    citinite – I am going to copy this code and give it a try in the morning. But is sure seems like a lotta effort for we non-coders when we used to just click the alignment key in the Visual Editor that no longer does anything. Too bad they just don’t fix the editor.

    But thanks again. I will let you know if it works.

  • The topic ‘Audio Play no longer will center on page.’ is closed to new replies.