Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Apply different style when a line breaks [Thread Next] Re: Apply different style when a line breaksTo: NULL Date: 9/7/2005 2:50:00 PM Raul Martin wrote: > We have a fixed width menu with different length titles (values stored in an > xml file); we would like to apply differents css classes (using an xslt file) > to the titles of the menu depending on if the title breaks in two lines or > not, the reason is that we want to have different line-height for the lines > of the same title and different titles. XSLT can certainly produce HTML output that uses CSS to suggest its presentation but an XSLT stylesheet simply creates that HTML output and while doing that has no way to decide whether that HTML when later rendered in a certain user agent at a certain window width will cause line breaks or not. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
