Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Label for dropdown box [Thread Next] Re: Label for dropdown boxTo: NULL Date: 9/6/2005 4:24:00 PM James wrote: > What I'm having trouble with is getting > an html like optionGroup label to display and then offset the text for the > Canadian provinces. What I need is something like: > ... > West Virginia > Wisconsin > Wyoming > Canada > Alberta > British Columbia > etc... > > I was able to get the offset for the text with entity characters using a non > breaking space like:       > ,but I'm sure there is a better way to do this. Where is the XSL problem then? It seems you output HTML with your transformation and simply have a problem with the display of your generated HTML in a browser which does not depend on using XSLT at all. The presentational aspects of HTML are supposed to be declared in CSS accompanying the HTML so you might want to look at a CSS tutorial or book and play with specifying padding or margin on the option elements. CSS 1 specification is here: <http://www.w3.org/TR/CSS1> CSS 2 here: <http://www.w3.org/TR/CSS21> CSS learning resources here: <http://www.w3.org/Style/CSS/learning> As you ask in a Microsoft group you might target IE with your HTML so the IE docs on its CSS implementation could help: <http://msdn.microsoft.com/library/default.asp?url=/workshop/author/css/css_node_entry.asp> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
