Note that there are some explanatory texts on larger screens.

plurals
  1. POStacking <td> elements not working
    primarykey
    data
    text
    <p>This seems like it should be pretty simple, and everything works as expected in a local HTML example, but something is messing with my code and I can't figure out what it is. </p> <p>At the following dev URL (<a href="http://mountdoracoffeehouse.weebly.com/test.html" rel="nofollow">http://mountdoracoffeehouse.weebly.com/test.html</a>) I have a simple <code>&lt;table&gt;</code> at the very top of the page. This is just to strip it down to the most basic functionality, the real application will be with other <code>&lt;table&gt;</code> elements on the site. The site is built using Weebly's CMS, which unfortunately uses <code>&lt;table&gt;</code>'s to create columns. when you view a Weebly site on a mobile device, they load a mobile stylesheet that sets the <code>&lt;td&gt;</code> elements to <code>display:block</code>, causing them to stack. This is what's not working for me. I am not using Weebly's default mobile stylesheet, and am instead creating my own.</p> <p>So I have the following HTML structure:</p> <pre><code>&lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;This is td 1&lt;/td&gt; &lt;td&gt;This is td 2&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>...and the following CSS:</p> <pre><code>&lt;style type="text/css"&gt; table { width:100%; table-layout:fixed; } td { width:100%; display:block !important; } &lt;/style&gt; </code></pre> <p>Can anyone mess with the DOM via Inspector and figure out what is getting in the way of this code working? I'm slamming my head on the desk as I type this after hours of frustration.</p> <p>Thanks, ~Nathan</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