Support » Themes and Templates » styling YouTube object

  • Resolved bricksmith

    (@bricksmith)


    I’m trying to get all of the youtube videos on my site to align to the right, with text wrapping around the left. Looks fine in FireFox, but not IE8. Here’s what I’m using:

    object {
    text-align: right;
    }

    I’ve also tried

    object {
    float: right;
    }

    Neither has worked. Any suggestions?

    Here’s a link to the site:

    http://www.kbcdevelopment.com/moreforchrist

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Try

    object, embed {
    float: right;
    }
    bricksmith

    (@bricksmith)

    Thanks for responding, zoonini! I ended up using:

    embed {
    float: right;
    padding:15px;
    }

    and that worked.

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Sure! I was trying to combine your existing object style with the new embed style to save you a few lines of code. 😉

    If you would please mark this thread as “resolved” (drop-down menu in the right column) it would be appreciated. Helps everyone keep better track of whose issues are still outstanding. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘styling YouTube object’ is closed to new replies.