Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Label for dropdown box

From: Martin Honnen <mahotrash@-----.-->
To: 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: &#160;&#160;&#160;&#160;&#160;
> ,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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent