I create a widget similar to uservoice widgets, except that the content of the page should be in an iFrame, not the widget displayed through javascript. How can I get the full iFrame (width / height 100%) of an iFrame with a div located to the left of the browser, an example (using javascript, not css / html) is here: http://uservoice.com/demo
I want this widget to appear initially on the page, and the content to be loaded via iFrame.
Any ideas? I can not get the iFrame to fill the entire page, and also display on top. I have not played with z-indexes. Code example:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <style> #widget { left: 0px; position: absolute; top: 50%; display: block; z-index:100001; width: 25px; } #content { z-index:1; } </style> </head> <body> <div id="widget"> widget </div> <iframe frameborder="0" id="content" src="http://www.google.com/" width="100%" height="100%"></iframe> </body> </html>
html css iframe
Peter Clark
source share