Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Center a Video on Wordpress

  1. #11
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    Quote Originally Posted by MikeDVB View Post
    Makes me feel silly, it's been a while since I've messed with HTML/CSS

    You are being too shielded from code by your WYSIWYG editors and dreamweaver.
    Submit new proxies -

  2. #12
    MikeDVB is offline Unknown Net Builder
    Join Date
    May 2009
    Posts
    36
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Quote Originally Posted by Keldorn View Post
    You are being too shielded from code by your WYSIWYG editors and dreamweaver.
    Nah, these days I just pay people to deal with such things... I tend to deal with the coding itself (PHP, Perl, etc)
    Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
    LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
    Incremental R1Soft CDP Backups on all services! Proudly hosting over 3,800 domains!
    http://www.mddhosting.com/ - New and improved VPS plans!

  3. #13
    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 MikeDVB View Post
    I tend to deal with the coding itself (PHP, Perl, etc)
    Hi,

    Maybe someday I'll get that advanced Right now I am still working on the simple stuff.

    I'm just like a two year old when it comes to this stuff. With lots of Why's?

    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

  4. #14
    MikeDVB is offline Unknown Net Builder
    Join Date
    May 2009
    Posts
    36
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Quote Originally Posted by Sami4u View Post
    Hi,

    Maybe someday I'll get that advanced Right now I am still working on the simple stuff.

    I'm just like a two year old when it comes to this stuff. With lots of Why's?

    Butterflies Forever

    Sami
    You have to start somewhere! I was at that point once although it has been quite some time
    Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
    LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
    Incremental R1Soft CDP Backups on all services! Proudly hosting over 3,800 domains!
    http://www.mddhosting.com/ - New and improved VPS plans!

  5. #15
    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

    Smile

    align attribute is not recommended.

    wrap your video in a two divs.

    Div #1 has the class "vid-box"
    Div #2 has the class "vid-wrap"

    HTML
    Code:
    <div class="vid-box">
      <div class="vid-wrap">
            <!--video code here-->
      </div>
    </div>
    CSS
    Code:
    .vid-box {text-align:center; width:99%;}
    .vid-wrap {margin:0 auto; text-align:left;}

  6. #16
    MikeDVB is offline Unknown Net Builder
    Join Date
    May 2009
    Posts
    36
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Quote Originally Posted by Aziz View Post
    align attribute is not recommended.

    wrap your video in a two divs.

    Div #1 has the class "vid-box"
    Div #2 has the class "vid-wrap"

    HTML
    Code:
    <div class="vid-box">
      <div class="vid-wrap">
            <!--video code here-->
      </div>
    </div>
    CSS
    Code:
    .vid-box {text-align:center; width:99%;}
    .vid-wrap {margin:0 auto; text-align:left;}
    Isn't that over-complicating it a bit or is this to make it better for cross-browser compatibility.
    Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
    LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
    Incremental R1Soft CDP Backups on all services! Proudly hosting over 3,800 domains!
    http://www.mddhosting.com/ - New and improved VPS plans!

  7. #17
    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 MikeDVB View Post
    Isn't that over-complicating it a bit or is this to make it better for cross-browser compatibility.
    this is for cross-browser compatibility, specially for IE

  8. #18
    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 dmi View Post
    Code:
    <div align="center">
    video goes here
    </div>
    Even better,

    just use:

    <center>VIDEO EMBED CODE</center>

  9. #19
    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

    Exclamation

    Quote Originally Posted by chrisfletcher View Post
    even better,

    just use:

    <center>video embed code</center>
    warning: deprecated tag. No longer w3 valid for standard xhtml doctypes

  10. #20
    Keldorn's Avatar
    Keldorn is offline Net Builder
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    400
    Thanks
    21
    Thanked 60 Times in 52 Posts
    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>.
    Submit new proxies -

Page 2 of 3 FirstFirst 123 LastLast

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
  •