Note that there are some explanatory texts on larger screens.

plurals
  1. POFixed divs and inside of iframe elements
    primarykey
    data
    text
    <p>I have a problem with html code. I have tried many solutions but i haven't solved my problem. Excatly my problem is ; if i used two div inside of html page and both divs must be contains iframe element, i have never seen correct html page in browser. </p> <p>Note : each div must have position:fixed css attribute.</p> <p>Example code : </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;style&gt; body{margin:0px;} .modalWrapper { position:fixed; display:block; width:500px; height:300px; background-color:#000; color:#fff; margin:0px; top:50px; left:500px; z-index:100; } .modalHeader{ width:100%; height:80px; } .modalNavigator { background-color:#ccc; height:220px; } .bottomWrapper { position:fixed; display:block; width:100%; height:300px; background-color:#000; color:#fff; margin:0px; bottom:0px; z-index:99; } .bottomHeader{ width:100%; height:80px; } .bottomNavigator{ background-color:#ccc; height:220px; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div&gt; &lt;div class="modalWrapper"&gt; &lt;div class="modalHeader"&gt; Modal &lt;/div&gt; &lt;div class="modalNavigator"&gt; &lt;iframe frameborder="0" src="http://www.yahoo.com" id="Iframe1" style="height: 220px; width: 100%;" scrolling="no"/&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="bottomWrapper"&gt; &lt;div class="bottomHeader"&gt; Bottom &lt;/div&gt; &lt;div class="bottomNavigator"&gt; &lt;iframe frameborder="0" src="http://www.google.com.tr" id="Iframe2" style="height: 220px; width: 100%;" scrolling="no"/&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload