html - white-space:'nowrap' in a table cell breaks the table-layout:'auto': how to fix it? -


i'm trying design music playlist : https://codepen.io/anon/pen/xlylvd

my base element html table.

i use

table-layout:auto; 

for table because want cells fit content; don't know how long (especially last 2 columns of example, .wpsstm-track-actions , .wpsstm-track-sources, number of items vary).

i have 3 columns (the track informations) truncate (those track artist, title , album cells; have .wpsstm-track-info class) because maintain each row on single text line.

but using

white-space: nowrap; 

on cells, design breaks : seems table-layout:auto , white-space:nowrap can't used (see line #49 of pen)

any ideas on how succeed on ? !

text-overflow: ellipsis works table-layout: fixed

also, need set width table , apply text-overflow td, not span inside it.

https://codepen.io/anon/pen/xlypbk

you're gonna have set static width .wpsstm-track-actions , .wpsstm-track-sources, i'm afraid. should no problem design perspective.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -