Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72416

Why won't this table use the specified dimensions?

$
0
0

I'm trying to have a very big table with fixed cell widths and the parent container overflowing. Here is a fiddle where I want the container to overflow. Why is it not working and how to do it properly?

.container {
  overflow: scroll;
}

.tracks-container {
  table-layout: fixed;
}

.sequencer-cell {
  border: 1px solid #ccc;
  width: 25px;
}
<div class="container"><table class="tracks-container"><tbody><tr><th>reese</th><td class="sequencer-cell">&nbsp;</td>
        ...62 other cells...<td class="sequencer-cell">&nbsp;</td></tr><tr><th>guitar</th><td class="sequencer-cell">&nbsp;</td>
        ...62 other cells...<td class="sequencer-cell">&nbsp;</td></tr></tbody></table></div>

Viewing all articles
Browse latest Browse all 72416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>