I have tabular data in a Telerik RadGrid where I'm converting the table cells <TD>
's to display: inline-block
so they will "stack" vertically for mobile devices. Works great... except for when one of the items text is longer and is forced to wrap, where the 2nd line is not left-aligned with the first line. I was able to implement text-indent: hanging 45%
, but it only resolves the issue for ios devices. Apparently text-indent
isn't supported in Android.
I"m using the :before psuedo element to apply content: attr(data-label)
representing the column heading. An important note is that the "document name" is a link to download the document. An example is attached.
Is there an equivalent technique to mimic this behavior for non-ios mobile devices?