Note that there are some explanatory texts on larger screens.

plurals
  1. POFormatted box in css works in jsfiddle but not standalone in Chrome
    text
    copied!<p>I made a popup that needs to be formatted in a variety of different ways: <a href="http://jsfiddle.net/HhZX8/" rel="nofollow">click here to see</a></p> <p>It displays fine in jsfiddle.net but when you put the code in a file and view it through chrome it does not work because the <code>popup_item</code> is a different size from <code>popup_heading</code>. </p> <p>My question is am I doing this right or should I be going about this in a different way?</p> <p>Why does it display fine in jsfiddle.net but not in chrome, I'm using chrome to view jsfiddle.net, shouldn't it display the same?</p> <pre><code>.popup_box table {width:100%;} </code></pre> <p>Here's the code posted in the jsfiddle:</p> <p>CSS:</p> <pre><code>.popup_box table { width:100%; } .popup_overlay { width: 100%; height: 100%; top: 0; left: 0; position: absolute; background-image: url(http://localhost/justin/CenterNavigator/images/overlay.png); } .popup_frame { width: 100%; position: fixed; top: 30%; } .popup_box { width:50%; margin: auto; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; border:2px solid #000000; background-color:#999; } .popup_title { border-radius: 20px 20px 0px 0px; background-color:#E3A20B; width: 98%; font-size: 270%; font-weight: bold; text-align: center; text-transform: uppercase; padding: 1%; } .popup_heading { width: 28%; float: left; font-weight: bold; font-size: 170%; text-align: right; padding: 1%; } .popup_item { width: 68%; float: left; text-align: left; font-size: 170%; padding: 1%; } .popup_mesage { width: 98%; float: left; text-align: left; font-size: 170%; padding: 1%; } .popup_1button { width: 98%; float: left; text-align: center; padding: 1%; } .popup_2button { width: 48%; float: left; text-align: center; padding: 1%; } .popup_3button { width: 31.33333%; float: left; text-align: center; padding: 1%; } .popup_4button { width: 23%; float: left; text-align: center; padding: 1%; } </code></pre> <p>Markup:​</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"&gt; &lt;title&gt;layout&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="popup_overlay"&gt; &lt;div class="popup_frame"&gt; &lt;div class="popup_box"&gt; &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt; &lt;div class="popup_title"&gt;title&lt;/div&gt; &lt;div class="popup_heading"&gt;heading:&lt;/div&gt; &lt;div class="popup_item"&gt;data&lt;/div&gt; &lt;div class="popup_heading"&gt;heading:&lt;/div&gt; &lt;div class="popup_item"&gt;data&lt;/div&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;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; ​ </code></pre>
 

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