Note that there are some explanatory texts on larger screens.

plurals
  1. PODim area around floating div
    primarykey
    data
    text
    <p>I am pretty good at html and css, but horrible at Javascript.</p> <p><strong>This is the HTML coding I have:</strong></p> <pre><code>&lt;script&gt; var toggle = function() { var mydiv = document.getElementById('nodate'); if (mydiv.style.display === 'block' || mydiv.style.display === '') mydiv.style.display = 'none'; else mydiv.style.display = 'block' } &lt;/script&gt; &lt;div id="nodate" style="display:none"&gt;&lt;span class="A"&gt; &lt;input type="image" src="http://www.weebly.com/uploads/1/6/7/6/16768236/custom_themes/307429121386408805/files/close-icon.png?1384992227202" width="42" onclick="toggle();" /&gt;&lt;/span&gt;&lt;b&gt;There are no reservations listed under the date you selected. &lt;/b&gt;Please select another date or ask for assistance.&lt;br&gt;&lt;br&gt;&lt;image src=”http://www.weebly.com/uploads/1/6/7/6/16768236/custom_themes/307429121386408805/files/sorry.jpg?1384992565622” width=”200”/&gt;&lt;/div&gt; </code></pre> <p></p> <p>This CSS code goes along with it:</p> <pre><code>#nodate { background-color: #fff; width: 95%; height-min: 300px; z-index: 500; border: 2px solid #000; padding: 10px; margin-left: auto; margin-right: auto; position:absolute; top: -10px; left:0; right:0; margin-left:auto; margin-right:auto; } .A { float: right; margin-top: -30px; margin-right: -30px; } </code></pre> <p>When the dIV is launched, it covers a portion of the page but I want it to dim the area surrounding it. What is the simplest way and how do I do it (if using Javascript, please help me out)</p>
    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.
    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