View Full Version : create html elements with fixed width using XSLT

January 29th, 2008, 10:39 AM

I have a table that shows some text from the database. The I have defined a fixed width for all elements and table with CSS. But, if one of the element has all letters connected like this gggggggggggggggggggggggggggggggggggggggggggggggggg gggggggggggggggggggggggggggggggggggggggggggggggggg ggggggggggggg

it will break everything and becomes very big.

I'm using xslt to transfer my xml document to html, but I don't know if there is any function that can solve this problem.

I really appreciate you spending your time reading this.

Thanks in advance.

January 29th, 2008, 10:41 AM
Check this http://www.quirksmode.org/css/overflow.html.

January 29th, 2008, 12:42 PM
thanks, but it didn't work. I believe there should be a way to do it in xslt.

January 29th, 2008, 03:14 PM
XSLT converts your to HTML. You should add an attribute to your TD tag (if it is a HTML-table you are creating).

<td style="overflow:hidden">