if you take it outside the form it works /styles/main.css contents radio.CustomClass { border: 1px solid black; background-color: InfoBackground; align:left; valign:middle }
.....jsp...... <head> <title>test for lee</title> <link href="<s:url value='/styles/main.css' encode='false' includeParams='none'/>" rel="stylesheet" type="text/css" media="all"/> </head> <s:form> .......... </s:form> <s:radio list="{'0'}" name="lookup_id3" cssStyle="{ align:left; }" value="0"/> <br> <s:radio list="{'1'}" name="lookup_id3" cssClass="radio.CustomClass" value="1" /> </body> ..will render 2 radio buttons aligned to the left... HTH Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: j...@leeclemens.net > To: user@struts.apache.org > Subject: RE: Radio options left aligned > Date: Sun, 30 Aug 2009 21:36:06 -0400 > > I played around with it for a while, so I'm pretty sure it's not a caching > issue. > > Firefox 3.5.2 > Struts 2.1.6 > > I updated radiomap.ftl to put <td> tags and grab the cssClass value and put > it there (works, but doesn't alter the alignment behavior for the <input> > tags. > > -----Original Message----- > From: Martin Gainty [mailto:mgai...@hotmail.com] > Sent: Sunday, August 30, 2009 8:56 PM > To: Struts Users Mailing List > Subject: RE: Radio options left aligned > > > put align:left and/or valign:top in your Class > if for any reason the align or valign does'nt render thats a definite bug.. > which version browser? > which version struts? > > thanks, > Martin Gainty > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > From: j...@leeclemens.net > > To: user@struts.apache.org > > Subject: RE: Radio options left aligned > > Date: Sun, 30 Aug 2009 16:37:59 -0400 > > > > Doesn't seem to work, but maybe my description was unclear. > > > > I'm trying to get this: > > () OptA () OptB () OptC > > > > to look like this: > > () OptA > > () OptB > > () OptC > > > > theme="simple" prints them all in order > > theme="xhtml" prints them inside the same td tag (same row, not each as a > > new row). > > > > Using cssClass adds a class attribute to the <input> tags, but isn't being > > rendered (tried only color=red;). If I wrap the <s:radio> tag in a <div > > class="customClass">, it is rendered - but radio buttons are still > displayed > > in same row. > > > > -----Original Message----- > > From: Martin Gainty [mailto:mgai...@hotmail.com] > > Sent: Sunday, August 30, 2009 3:48 PM > > To: Struts Users Mailing List > > Subject: RE: Radio options left aligned > > > > > > either cssStyle or cssClass > > > > cssStyle="valign="middle" align="left"" > > > > or you can define a customClass inside stylesheet.css > > radio.CustomClass { > > border: 1px solid black; > > background-color: InfoBackground; > > align:left; > > valign:middle > > } > > then reference the customClass with cssClass attribute > > <s:radio cssClass="radio.CustomClass" .....> > > > > <table><tr><td>Content</td></tr></table> assumes row and data tags for > table > > Martin Gainty > > ______________________________________________ > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > > dient lediglich dem Austausch von Informationen und entfaltet keine > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > > destinataire prévu, nous te demandons avec bonté que pour satisfaire > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la > copie > > de ceci est interdite. Ce message sert à l'information seulement et n'aura > > pas n'importe quel effet légalement obligatoire. Étant donné que les email > > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > > aucune responsabilité pour le contenu fourni. > > > > > > > > > > > From: j...@leeclemens.net > > > To: user@struts.apache.org > > > Subject: RE: Radio options left aligned > > > Date: Sun, 30 Aug 2009 14:59:26 -0400 > > > > > > If anyone else needs to do this in the future, updating radiomap.ftl > > seemed > > > to be the only way. Just add <tr> and <td> tags around the input > > > tag/attributes. > > > > > > -----Original Message----- > > > From: Dave Newton [mailto:newton.d...@yahoo.com] > > > Sent: Saturday, August 29, 2009 5:50 PM > > > To: Struts Users Mailing List > > > Subject: Re: Radio options left aligned > > > > > > Lee Clemens wrote: > > > > theme 'simple' is horizontally aligned (and my default) > > > > theme 'xhtml' puts everything else out of whack > > > > theme 'ajax' puts everything else out of whack > > > > > > > > Are you suggesting my own theme, where I put a <br/> or whatever > > > > between the options? > > > > > > If you're not going to do it via CSS I'm not sure what the other options > > > > are. > > > > > > Dave > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > _________________________________________________________________ > > Windows Live: Keep your friends up to date with what you do online. > > > http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON > > :WL:en-US:SI_SB_online:082009 > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > _________________________________________________________________ > Hotmail® is up to 70% faster. Now good news travels really fast. > http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:W > M_HYGN_faster:082009 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ With Windows Live, you can organize, edit, and share your photos. http://www.windowslive.com/Desktop/PhotoGallery