Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your code is very unsemanticly written. I <a href="http://jsfiddle.net/BramVanroy/HhZX8/1/" rel="nofollow">rewrote</a> it as a whole.</p> <pre><code>&lt;div class="popup_box"&gt; &lt;div class="popup_title"&gt;title&lt;/div&gt; &lt;div class="popup_content"&gt; &lt;div class="popup_header"&gt; &lt;span class="popup_heading"&gt;heading:&lt;/span&gt; &lt;span class="popup_item"&gt;data&lt;/span&gt; &lt;/div&gt; &lt;div class="popup_header"&gt; &lt;span class="popup_heading"&gt;heading:&lt;/span&gt; &lt;span class="popup_item"&gt;data&lt;/span&gt; &lt;/div&gt; &lt;div class="popup_buttons"&gt; &lt;div class="popup_4button"&gt;button1&lt;/div&gt; &lt;div class="popup_4button"&gt;button2&lt;/div&gt; &lt;div class="popup_4button"&gt;button3&lt;/div&gt; &lt;div class="popup_4button"&gt;button4&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; ​ </code></pre> <p>A lot of divs, I know, but it's still better than what you wrote imo. No table needed and you need less CSS:</p> <pre><code>.popup_overlay { width: 100%; height: 100%; top: 0; left: 0; position: fixed; background: rgba(0,0,0,0.12); } .popup_box { width:50%; margin: 50px auto; border-radius: 20px; border: 5px solid #333; background-color: #3D668F; box-shadow: 0 5px 20px rgba(0,0,0,0.32); overflow: hidden; } .popup_title { width: 98%; font-size: 270%; font-weight: bold; text-align: center; text-transform: uppercase; color: white; padding: 1%; } .popup_heading, .popup_item { font-weight: bold; font-size: 170%; padding: 1%; } .popup_item {font-weight: normal;} .popup_4button { width: 23%; float: left; text-align: center; padding: 1%; } ​ </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.
    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