Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my Tumblr blog I'm trying to center the embedded audio posts but they won't. I found some other people have tried centering iFrame. I've also tried setting margin: auto; in the CSS inside .audioembed

Here's my block audio code:

.audioEmbed {
  margin-left: auto;
  margin-right: auto;


    <div class="audioEmbed">


How can I get embedded audio posts to show centered on a post?

share|improve this question

In order to center a block-level element you need to give it a width. It will otherwise default to 100%.

.audioEmbed {
    width: 20em;
    margin-left: auto;
    margin-right: auto;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.