Note that there are some explanatory texts on larger screens.

plurals
  1. POBox-shadow for each table cell not showing in Firefox
    primarykey
    data
    text
    <p>I need to make box-shadow for each table cell using <strong>:before</strong> pseudo element. It works perfect in all browsers except firefox.</p> <p><strong>CSS</strong></p> <pre><code>table { border-collapse: collapse; } .box2 .c-table { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; border-left: 1px solid #e5e3d5; border-top: 1px solid #e5e3d5; border-bottom: 1px solid #ebe8da; border-right: 1px solid #ebe8da; } .box .c-table { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; border-left: 1px solid #e0ded1; border-top: 1px solid #e0ded1; border-bottom: 1px solid #e6e4d6; border-right: 1px solid #e6e4d6; } .inbox .c-table { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; border-left: 1px solid #e0ded1; border-top: 1px solid #e0ded1; border-bottom: 1px solid #e6e4d6; border-right: 1px solid #e6e4d6; } .c-table tr &gt; td { position: relative; padding: 5px; } .c-table tr + tr { border-top: 1px solid #f0eee0; } .c-table td + td { border-left: 1px solid #f0eee0; } .c-table td:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; content: ''; -moz-box-shadow: inset 0 0 4px rgba(0,0,0,0.15); -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.15); box-shadow: inset 0 0 4px rgba(0,0,0,0.15); } .inbox { display: inline-block; font-family: 'Open Sans', sans-serif; font-size: 12px; color: #444444; padding: 5px; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; background-color: #d3d2c5; border: 1px solid #f0eee0; text-shadow: -1px -1px rgba(240,238,224,1), 1px 1px rgba(240,238,224,1); -moz-box-shadow: inset 0 0 4px rgba(0,0,0,0.15); -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.15); box-shadow: inset 0 0 4px rgba(0,0,0,0.15); } .box2 .inbox { border-left: 1px solid #e5e3d5; border-top: 1px solid #e5e3d5; border-bottom: 1px solid #ebe8da; border-right: 1px solid #ebe8da; } </code></pre> <p><strong>HTML</strong></p> <pre><code>&lt;div class="inbox margin-space"&gt; &lt;table class="c-table "&gt; &lt;tbody&gt; &lt;tr class="th"&gt; &lt;td&gt;column1&lt;/td&gt; &lt;td&gt;column2&lt;/td&gt; &lt;td&gt;column3&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;row1&lt;/td&gt; &lt;td&gt;row2&lt;/td&gt; &lt;td&gt;row3&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;row4&lt;/td&gt; &lt;td&gt;row5&lt;/td&gt; &lt;td&gt;row6&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;row7&lt;/td&gt; &lt;td&gt;row8&lt;/td&gt; &lt;td&gt;row9&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;row10&lt;/td&gt; &lt;td&gt;row11&lt;/td&gt; &lt;td&gt;row12&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; </code></pre> <p>I want to use pseudo for <strong>.c-table td</strong> because it makes a visual diffrence. ( visible in chrome )</p> <p><img src="https://i.stack.imgur.com/Qr3l3.png" alt="enter image description here"></p> <p><a href="http://fiddle.jshell.net/UXeBj/10/" rel="nofollow noreferrer">http://fiddle.jshell.net/UXeBj/10/</a></p> <p><strong>Temporary solution</strong></p> <pre><code>@-moz-document url-prefix() { .c-table td:before { content: none; } .c-table td { box-shadow: inset 0 0 4px rgba(0,0,0,0.15); } } </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