• I will often embed a Youtube video or some other “object” that is sourced from another site in my posts. More often than not the embed code does not include any obvious means of positioning that object so it always is placed in the very left hand side of the page.

    I’d like to be able to place that object in the middle of the page, or in some cases have my text wrap around it.

    Here is an example of code that I want to use in a post. I copy it to the HTLM tab in the post and it works perfectly, only it lines up on the left hand side of the page and I want to center it. As a bonus I would LOVE to be able to wrap text around it.

    <script type=”text/javascript”
    src=”http://www.oil-price.net/TABLE2/gen.php?lang=en”&gt;
    </script>
    <noscript> To get the WTI oil price, please enable Javascript.
    </noscript>

    How to?

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mr_Christopher

    (@mr_christopher)

    I found a solution for positioning the object:

    <div align=”center”>
    YOUTUBE VIDEO CODE
    </div>

    So how can I wrap text around it?

    <div style=”float:LEFT OR RIGHT;margin:0 15px 5px 0;”>
    YOUTUBE EMBED CODE
    </div>

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

The topic ‘How to position embedded objects such as YouTube’ is closed to new replies.