Problem: Every table cell of my two-column table needs to be 50% wide, but normal cell rules don't apply when there's a single-cell table, it takes on the 100% because the table is 100%. My CSS looks like this:
.mytable{ width: 100%; }
.mytable tr td { width: 50%; }
I tried every CSS combination I could think of and got nada. I gave up on CSS for this.
So now I'd like to force my table to render two cells even if only one cell exists in the markup. I'm trying to do that with <colgroup> <col span="2"> </colgroup>
, but it doesn't seem to be working either.
Question: How can I force my table to render two table cells when only one exists?
JS Fiddle: http://jsfiddle.net/uryvmz57/