A
A
Alexander Timkov2015-12-09 16:09:24
PHP
Alexander Timkov, 2015-12-09 16:09:24

How to align an iframe?

Guys, I have one Iframe on the left, I have the code for the second iframe, but I can't align it so that one is on the left, the other is on the right. Align doesn't help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2015-12-09
@RusBigGameDeV

<html>
<head>
  <style>
    .video_block{
      clear:both;
      width:100%;
    }
    .width50{
      outline: 1px solid #fff;
      width:50%;
    }
    .left{
      float:left;
    }
    .right{
      float:right;
    }
  </style>
</head>
<body>
  <div class="video_block">
    <div class="width50 left">
      <iframe width="100%" height="300" hight src="https://www.youtube.com/embed/59ZOOqUAOmw" frameborder="0" allowfullscreen></iframe>
    </div>
    <div class="width50 right">
      <iframe width="100%" height="300"src="https://www.youtube.com/embed/VMk_xSlVqVY" frameborder="0" allowfullscreen></iframe>
    </div>
    <hr>
  </div>
</body>
</html>

L
Les Alterman, 2015-12-09
@Les_Alterman

Try it with Float

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question