* TECRIDIBLE
Dear Graham,
you gave me this code some days back for my site it worked here next launcher 3d shell but the code is not working on blog
<style>

/* This element defines the size the iframe will take.
       In this example we want to have a ratio of 25:14 */
    .aspect-ratio {
      position: relative;
      width: 100%;
      height: 0;
      padding-bottom: 56%; /* The height of the item will now be 56% of the width. */
    }

    /* Adjust the iframe so it's rendered in the outer-width and outer-height of it's parent */
    .aspect-ratio iframe {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
    }
</style>

Copy code

Youtube Code:
<div class="aspect-ratio"><iframe src="http://m.youtube.com/watch?v=uf5HbvbPN0o" width="550" height="275" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div>
Copy code


This code not worked blog on blog
1. change height to auto
2. width is too much big change to 100% bro
on chrome the video doesn't show only top is visible

Test Page
2018-02-21 17:14 (edited 2018-02-21 17:18 by TECRIDIBLE ) · (0)
* Graham * TECRIDIBLE The embed code I used is a little different
<div class="aspect-ratio"><iframe src="http://youtube.com/embed/uf5HbvbPN0o?rel=0" allowfullscreen="allowfullscreen"></iframe></div>
Copy code
I tested on my own site and it worked as follows
chrome mine worked yours did not (pc)

win 8 mobile
operamini mine worked yours gave a 'not in an Iframe' warning
ucweb both worked
internet explorer mine worked yours gave a 'not in an Iframe' warning
http://cssw3s.xtgem.com/blog/__xtblog_entry/11350652-test?__xtblog_block_id=1

1 / is the css linked
2 / is html enabled for the post
3 / you could set the size limit in the first class by adding max-width:550px you do not need the width and height in the iframe and the border should be removed by css
2018-02-21 19:26 (edited 2018-02-21 22:13 by Graham ) · (0)
* TECRIDIBLE * Graham its not working with my blog my brother http://droidstore.gq/index/__xtblog_entry/11350512-tunnel-trouble?__xtblog_block_id=1#xt_blog check here
2018-02-22 04:09
*
* Screenshot_20180222-093819.jpg · image/jpeg · 132.61KB
(edited 2018-02-22 04:24 by TECRIDIBLE ) · (0)
* Graham * TECRIDIBLE number 2 in my previous answer
You had not enabled html for the post
2018-02-22 06:14 (edited 2018-02-22 06:16 by Graham ) · (0)

Online: Guests: 1