Search
 
SCRIPT & CODE EXAMPLE
 

HTML

iframe 100 responsive

<style>
    .container-iframe { position: relative; width: 100%; overflow: hidden; padding-top: 56.25%; /* 16:9 Aspect Ratio */ }
    .responsive-iframe { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border: none; }
</style>
<div class="container-iframe" data-widget="">
    <iframe src="index.html" class="responsive-iframe" frameborder="0"></iframe>
</div>
Comment

iframe responsive

<div class="row">	
  <div class="col-md-12 d-flex justify-content-center"> 
    <div class="video-iframe">
      <iframe class="video-responsive-iframe" src="<?= $blog_item['Blog']['video_url'] ?>" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </div>
  </div>
</div>

<style>
  
  .video-iframe {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
  }

  .video-responsive-iframe {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      width: 100%;
      height: 100%;
      border: none;
  }

  .d-flex {
  	display: flex;
  }
  
  .justify-content-center {
    justify-content: center;
  }
</style>
Comment

PREVIOUS NEXT
Code Example
Html :: Html meta responsive viewport metatag 
Html :: html left chevron symbol 
Html :: table all cells same width 
Html :: contenteditable onchange 
Html :: bootstrap multiselect dropdown with search stackoverflow 
Html :: how to make a button not reload on click 
Html :: nuxt route id nuxt link 
Html :: justify content space between class bootstrap 
Html :: how to make links in html 
Html :: disable textarea html 
Html :: otp not getting recognised in safari react 
Html :: emmet unordered list 
Html :: slider flash 
Html :: html how to add an image 
Html :: how to get the name of a html balise and pass it in onPress 
Html :: meta tag viewport 
Html :: how to set domain name on localhost linux ubuntu xampp 
Html :: how to redirect a page to another url in html 
Html :: how to upload pdf in html 
Html :: meta name viewport 
Html :: marquee tag in html 
Html :: html phone number validation pattern 
Html :: how to disable a link 
Html :: input limit file type html 
Html :: input type=text height width html 
Html :: swiper js arrows 
Html :: safe webp image usage html 
Html :: bullet list html mdn 
Html :: html shopping cart icon 
Html :: input and select box combined 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =