Konstantinos Natsios
Konstantinos Natsios

Reputation: 2924

Wordpress Video Align middle not working

I have a problem with one WordPress theme.

This is URL of my site and if you scroll down to the iFB section then you will see a video there.

I have entered this code to put it to this page

<iframe 
     src="https://www.youtube.com/embed/KO2hFoKDh18" 
     width="560" 
     height="315" 
     frameborder="0" 
     align="middle" 
     allowfullscreen="allowfullscreen"
></iframe>

but still going left.

Anyone that can help me?

Upvotes: 0

Views: 181

Answers (2)

Mudassar Saiyed
Mudassar Saiyed

Reputation: 1148

if you want to align your data than you can align it many ways. align center was not working do you to inheritance so you could it with css. make a class here style. so in script tag you can give margin-left so it will move towards right adjust as you need.

 .style {
              margin-left: 400px;
            }
</style>
   <iframe class="style" src="https://www.youtube.com/embed/KO2hFoKDh18"   width="560" height="315" frameborder="0"  allowfullscreen="allowfullscreen"></iframe>

Upvotes: 0

Mudassar Saiyed
Mudassar Saiyed

Reputation: 1148

  <iframe src="https://www.youtube.com/embed/KO2hFoKDh18" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>


  element.style {
                  margin-left: 400px;
                }

Upvotes: 1

Related Questions