How to do auto-width with HTML IFrame -


I am trying to use iframe to open another URL. But for the reason the width isiframe is fixed at 155px.

I need to resize the width iframe to fit the entire SRC iframe.

  & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; iframe frameborder = "0" scrolling = "no" height = "100%" width = "100%" src = "http://www.gnu.org/" & gt; & Lt; / Iframe & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

I tried width = "100%", but did not work.

html, body {height: 100%; Width: 100%; Margin: 0; }. H_iframe iframe {width: 100%; Height: 100%; } .h_iframe {height: 100%; Width: 100%; }

HTML

  & lt; Div class = "h_iframe" & gt; & Lt; iframe src = "// www.youtube.com/embed/9KunP3sZyI0" frameborder = "0" acceptable lens & gt; & Lt; / Iframe & gt; & Lt; / Div & gt;    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -