How to float text next to iframe

前端 未结 1 755
执念已碎
执念已碎 2021-01-23 03:36

I\'m trying to float text left of an iframe. I have the below, though it will not float. What needs to be changed? Canvas width is 800px

相关标签:
1条回答
  • 2021-01-23 03:59

    You might not even need float-left class. I have created a jsfiddle. It might be what you are looking for.

    http://jsfiddle.net/8dhqs/

    <iframe class="float-right" width="420" height="315" src="//www.youtube.com/embed/" 
    
    frameborder="0" allowfullscreen></iframe>
    <p>Hello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some text</p>
    <div class="clear"></div>
    
    .float-right {
    float: right;
    width: 65%;
    }
    
    0 讨论(0)
提交回复
热议问题