Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Center a Video on Wordpress

  1. #21
    Quote Originally Posted by dmi View Post
    Code:
    <div align="center">
    video goes here
    </div>
    Its the best method i know. but i am too late to help.
    Premium Directory :: PR4 Submit Your Link
    Lamrod.org :: Best Product Review and Price Comparison Site One LD :: PR1 Directory



  2. #22
    Quote Originally Posted by Aziz View Post
    warning: deprecated tag. No longer w3 valid for standard xhtml doctypes
    Oh yeah... It is ..But still works on WP .


    Quote Originally Posted by Keldorn View Post
    I laugh when I see a template using <center>. That is defiantly 1999 style, Who uses that anymore! Well Apparently only newbie webmasters.

    Something I can't understand is that <b></b> is deprecated and they recommend <strong>?
    <b> is a lot faster to type. I would rather keep using <b>.

    You got it right.

    I am yet to renew a domain that i registered. So...

  3. #23
    Hi,

    Can anyone tell me why?

    Code:
    <div align="center">
    video goes here
    </div>
    Works on all of my WP sites but not on my main site?

    Main site first in sig.

    Thanks in Advance

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  4. #24
    Quote Originally Posted by Sami4u View Post
    Hi,

    Can anyone tell me why?

    Code:
    <div align="center">
    video goes here
    </div>
    Works on all of my WP sites but not on my main site?

    Main site first in sig.

    Thanks in Advance

    Sami
    because your website doctype is probably XHTML 1.0 Strict DTD which does not support the <center> tag.

  5. #25
    Quote Originally Posted by Aziz View Post
    because your website doctype is probably XHTML 1.0 Strict DTD which does not support the <center> tag.
    Hi,

    How do I find this out and change it?

    Thanks

    Butterflies Forever

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  6. #26
    in most cases the DTD is declated in header.php file

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    I wouldn't suggest changing the DTD because then the rest of the template might not look the same duo to the compatibility changes in DTDs

    So the best solution would be a few lines of CSS and if you need help with that then let me know

  7. #27
    Maybe this would work?:

    <div style="margin: 0 auto; width:400px;">Video</div>

    I didn't test it but it is based on how I center the page content on a site.
    Last edited by Andy101; 30 September, 2009 at 12:14 PM. Reason: probably needs the width set explicitly

  8. #28
    Quote Originally Posted by Andy101 View Post
    Maybe this would work?:

    <div style="margin: 0 auto; width:400px;">Video</div>

    I didn't test it but it is based on how I center the page content on a site.

    Hi,


    Yes that one worked Now I can center my videos on all of my WP sites. They look a lot better that way.

    Butterflies Forever

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Entertainment Center
    By Fenrir in forum General Chat
    Replies: 0
    Last Post: 10 May, 2010, 17:48 PM
  2. Can't Center a Form (PHP/HTML/CSS)
    By vectro in forum Web Design
    Replies: 3
    Last Post: 8 February, 2010, 21:50 PM
  3. Bing Webmaster Center !!
    By WebEvader in forum Search Engine News
    Replies: 6
    Last Post: 9 October, 2009, 23:02 PM
  4. Bing Local Listing Center
    By irahat in forum Promoting
    Replies: 0
    Last Post: 28 August, 2009, 23:39 PM
  5. Replies: 0
    Last Post: 17 January, 2009, 23:34 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •