xsl-list
[Top] [All Lists]

[xsl] Dynamic column widths on table cells

2013-10-21 14:03:26
Is it possible to have columns adjust their width based on the length of the 
content?

I've got a situation where the right header is quite a bit longer than the 
left. I'd like it to use up the available space instead of wrapping when 
possible. (This example is set to 50/50 column width.)
http://i.imgur.com/bgCMJYB.png

If there's no way to automatically do it, can I manually do it based on content 
length?

If column one was 20 chars and column 2 was 40, set them to 
proportional-column-width(1) and proportional-column-width(2) for example.

Thanks everyone!
Matt
AVIS : Ce courrier et ses pieces jointes sont destines a leur seul destinataire 
et peuvent contenir des informations confidentielles appartenant a bioMerieux. 
Si vous n'etes pas destinataire, vous etes informe que toute lecture, 
divulgation, ou reproduction de ce message et des pieces jointes est 
strictement interdite. Si vous avez recu ce message par erreur merci d'en 
prevenir l'expediteur et de le detruire, ainsi que ses pieces jointes.
NOTICE: This message and attachments are intended only for the use of their 
addressee and may contain confidential information belonging to bioMerieux. If 
you are not the intended recipient, you are hereby notified that any reading, 
dissemination, distribution, or copying of this message, or any attachment, is 
strictly prohibited. If you have received this message in error, please notify 
the original sender immediately and delete this message, along with any 
attachments.



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>