Title: centering
Last modified: August 30, 2016

---

# centering

 *  Resolved [moz261](https://wordpress.org/support/users/moz261/)
 * (@moz261)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/)
 * Please,
 * tks for your plugin !
 * my wp 4.2.3 is the last release with youtube embedded .
    But i am unable to center
   the video player with this syntax you suggested in a post somewhere : <div align
   =”center”>[youtube]http://youtu.be/blahblahblah[/youtube]</div> neither with :
   <div align=”center”>[http://youtu.be/blahblahblah</div&gt](http://youtu.be/blahblahblah</div&gt);
 * the video is shown always on the left page ..
    Tks a lot in advance for your 
   help
 * [https://wordpress.org/plugins/youtube-embed/](https://wordpress.org/plugins/youtube-embed/)

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

 *  Thread Starter [moz261](https://wordpress.org/support/users/moz261/)
 * (@moz261)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364154)
 * hi again,
 * I tried this in plugin admin in tempplate field :
    <div align=”center”>%video%
   </div>
 * no way 🙁
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364155)
 * You need to link a page with the issue. The HTML “align” attribute is deprecated.
 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364162)
 * Normally just using the centring option in the editor against the shortcode works
   but it’s really down to how your theme is set-up. Can you provide a link to a
   page where it’s happening?
 * David.
 *  Thread Starter [moz261](https://wordpress.org/support/users/moz261/)
 * (@moz261)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364172)
 * hi,
 * as the article is in draft mode i can’t publish the link for the time being, 
   sorry.. on monday i ‘ll ..
 * Nonetheless i tried this instead :
 * <p style=”text-align: center;”>
    [youtube]https://www.youtube.com/watch?blac[/
   youtube]</p>
 * and it works..but do you think that is the right method as i use a “align” attribute?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364176)
 * Don’t use the “align” attribute.
 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364177)
 * moz261 – yes, that looks spot on to me.
 * Andrew – no sure what you mean. The CSS align attribute is perfectly fine and
   WordPress (including the MCE editor) uses it all the time.
 * David.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364178)
 * I’m not saying anything controversial. The _HTML _align attribute has been deprecated
   for many years. I’d say 4+ years, please keep up to date.
 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364180)
 * You’re correct – the HTML one has, but the second suggestion of the poster was
   to use the text-align attribute in CSS, which is not deprecated, and you told
   him not to use that either.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364181)
 * > and it works..but do you think that is the right method as i use a “align” 
   > attribute ?
 * > Don’t use the “align” attribute.
 * I would say I have as much responsibility to encourage people to write good code
   as you do.
 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364184)
 * I think you’ve got it confused. Because you’d told him, quite rightly, before
   to not use the HTML align statement he was querying whether the CSS text-align
   solution was correct too. Which it is. But, yes, you’re right to point out good/
   bad coding but I think there’s just been some confusion here as to what he meant
   second time around. The CSS solution is good and it works.
 * David.
 *  Thread Starter [moz261](https://wordpress.org/support/users/moz261/)
 * (@moz261)
 * [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364220)
 * [@andrew](https://wordpress.org/support/users/andrew/) : tks for your response
   
   [@dartiss](https://wordpress.org/support/users/dartiss/) : tks for the developpement
   of such plugin and your comments
 * @both of you for the discussion…

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

The topic ‘centering’ is closed to new replies.

 * ![](https://ps.w.org/youtube-embed/assets/icon-256x256.png?rev=2955063)
 * [Embeds for YouTube](https://wordpress.org/plugins/youtube-embed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-embed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-embed/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-embed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-embed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-embed/reviews/)

## Tags

 * [centering](https://wordpress.org/support/topic-tag/centering/)

 * 11 replies
 * 3 participants
 * Last reply from: [moz261](https://wordpress.org/support/users/moz261/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/centering-12/#post-6364220)
 * Status: resolved