Note that there are some explanatory texts on larger screens.

plurals
  1. POhow can multiple divs have 85% height and 100% width?
    primarykey
    data
    text
    <p>My question is regarding having 2 divs both having 85% height and 100% width, but only displaying one at a time. As it is now the second div is displaying strangely.</p> <p>Have a look here and choose (menuslider->choose "graf" under visa.) There you will see that the second div is not having the width 100% and 85% height, can I solve this in an easy way?</p> <p><strong><a href="http://dl.dropbox.com/u/4171179/website/index.html" rel="nofollow">Here is the website</a></strong></p> <p>Here is the HTML:</p> <pre><code>&lt;div id="mainContent"&gt; &lt;div id="googleMap"&gt;&lt;/div&gt; &lt;div id="GraphWindow"&gt;dw &lt;iframe src="prototype.html" frameborder="" name="" width="" height="" scrolling="no"&gt; Sorry your browser does not support frames or is currently not set to accept them.&lt;/iframe&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Here is the CSS:</p> <pre><code>html {height:100%} body {height:100%;margin:0;padding:0} #mainContent{ height:85%; width:100%; margin-left: auto ; margin-right: auto ; } #graphWindow{ height:85%; width:100%; margin-left: auto ; margin-right: auto ; } #googleMap { height:85%; width:100%; margin-left: auto ; margin-right: auto ; } </code></pre> <p>Here is the javascript showing or hiding the graph:</p> <pre><code>function selectMainView(){ if(document.details.title.value == "map"){ document.getElementById("googleMap").style.display = "block"; document.getElementById("GraphWindow").style.display = "none"; } else{ document.getElementById("googleMap").style.display = "none"; document.getElementById("GraphWindow").style.display = "block"; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    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