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

Thread: Center a Video on Wordpress

  1. #21
    jakki's Avatar
    jakki is offline Directory Submission Service
    Join Date
    Mar 2009
    Posts
    963
    Blog Entries
    2
    Thanks
    146
    Thanked 90 Times in 74 Posts
    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
    ChrisFletcher's Avatar
    ChrisFletcher is offline Newbie Net Builder
    Join Date
    Jul 2009
    Posts
    81
    Thanks
    4
    Thanked 4 Times in 4 Posts
    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
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,426
    Thanks
    703
    Thanked 293 Times in 221 Posts
    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
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    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
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,426
    Thanks
    703
    Thanked 293 Times in 221 Posts
    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
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    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
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,367
    Thanks
    181
    Thanked 313 Times in 240 Posts
    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 13:14 PM. Reason: probably needs the width set explicitly

  8. Thanked by:

    Sami4u (30 September, 2009)

  9. #28
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,426
    Thanks
    703
    Thanked 293 Times in 221 Posts
    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, 18: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: 10 October, 2009, 00:02 AM
  4. Bing Local Listing Center
    By irahat in forum Promoting
    Replies: 0
    Last Post: 29 August, 2009, 00:39 AM
  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
  •