• Resolved nancedelia

    (@nancedelia)


    Have tried left centering a youtube video by class=”alignleft” but it is still stuck in its position. Here is the code:
    <iframe class=”alignleft” src=”https://www.youtube.com/embed/WVhNmwagYGk&#8221; width=”560″ height=”315″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • From your style sheet, try removing float: left (commented out below) and add a <br> tag after </frame>

    .alignleft {
    display: inline;
    /* float: left; */
    margin-right: 1.5em;

    • This reply was modified 7 years, 5 months ago by cosmician.
    Thread Starter nancedelia

    (@nancedelia)

    Cosmician, thanks for the tip. This is what I tried:
    <div style=”float:left;margin-right:20px;margin-bottom:20px;”> and put a </div> at the end of the iframe and it worked.

    I put <p style=”clear:both;”>TEXT HERE</p> in the following paragraph. Thanks again.

    great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to left align youtube video in post’ is closed to new replies.