I want to display an image in an iframe on my webpage. However, the problem is that I cannot make it expand to 100% of its size.
I want to do the following.
- Have an iframe on my webpage.
- Calling an image inside an iframe.
- Make the image expanded to full size and in response, the iframe allows me to scroll.
- There are no scroll bars on my web page.
There is currently a code here:
echo"<iframe name='graph' id='graph' src=$image style='position:absolute; top:0px; left:0px; height:100%;width:100%'></iframe>";
What he does is that the iframe comes on top of my web page and still does not expand to 100%. If I remove the position: absolute instead of:
echo"<iframe name='graph' id='graph' src=$image style='top:0px; left:0px; height:100%;width:100%'></iframe>";
I get it so that it expands in width to 100%, but in terms of height it is only 3 pixels high, and for scrolling down it is a scroll bar.
, , , , . CSS, ...
, , , Firefox. iframe, . Chrome IE. ?