Laurie,
That wrapped markup around all the radio buttons, not each of the
button/label combination :(

 
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday, May 31, 2007 3:06 PM
To: user@struts.apache.org
Subject: Re: [S2] How do I get radio buttons to show vertically

You could switch to the xhtml or css_xhtml theme, which would give you 
additional markup around each radio button / label pair. You would then 
have sufficient markup structure to style with CSS.

Alternatively, create your own custom theme, or just write a custom 
template for this specific tag and use the template and/or templateDir 
attributes to reference it.

L.

Charbel Abdul-Massih wrote:
> Guru,
> 
> The HTML that's outputted by struts is like this (with the "simple"
> theme)
> 
> <input type="radio" name="testRadio" id="testRadio1" value="all"
> class="radioB"/><label for="testRadio1">label 1</label>
> 
> <input type="radio" name="testRadio" id="testRadio2" value="prev"
> class="radioB"/><label for="testRadio2">label 2</label>
> 
> Using the "display:block" would put my radios on sperate lines, but
also
> put the labels for the radios on separate lines as well...I want the
> radio and label associated with it to stay on the same line...any
other
> suggestions?
> 
> Thanks,
> Charbel
> 
> -----Original Message-----
> From: Raghupathy, Gurumoorthy
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 31, 2007 11:11 AM
> To: Struts Users Mailing List
> Subject: RE: [S2] How do I get radio buttons to show vertically
> 
> Apply a style sheet class which has "display:block" .... 
> http://www.w3schools.com/css/pr_class_display.asp
> 
> Google is your best friend :)
> 
> Guru
> 
> -----Original Message-----
> From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
> Sent: 31 May 2007 15:16
> To: Struts Users Mailing List
> Subject: [S2] How do I get radio buttons to show vertically
> 
> I am using the following tag in my jsp
> 
>  
> 
> <s:radio list="someMappedList" name="radioButtonSelected"/>
> 
>  
> 
> Currently, my map has two entries.  The radios are displayed on the
same
> line...I would like them displayed on 2 separate lines...Is there an
> easy way to do this???
> 
>  
> 
> Thanks,
> 
> Charbel
> 
>  
> 
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to