You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by xianwinwin <xi...@gmail.com> on 2008/01/29 18:29:59 UTC

struts2 forms and css

hi there,

I wonder how to change the font style of my form. Currently it is in a
simple 'Times New Roman' and I would like to have it differently (say
verdana).

the jsp page looks like this (below) and I wonder where the code should be
embedded? 


<%@ include file="/pages/layouts/taglibs.jsp" %>
<h2 class="menu" id=title>Add new Entity</h2>
<%@ include file="tabMenu.jsp" %><body class="section-1">


<s:form action="customize" validate="true">
		
	<s:textfield name="name" label="Legal Name" />		
	<s:textarea rows="5" cols="25" name="comment2" label="Comment" />	
			
	<s:submit action="customize_insert" label="Insert" align="center" />
 	                         
</s:form>
-- 
View this message in context: http://www.nabble.com/struts2-forms-and-css-tp15164776p15164776.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 forms and css

Posted by xianwinwin <xi...@gmail.com>.
thanks, this solved it

-- 
View this message in context: http://www.nabble.com/struts2-forms-and-css-tp15164776p15170582.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 forms and css

Posted by Laurie Harper <la...@holoweb.net>.
xianwinwin wrote:
> hi there,
> 
> I wonder how to change the font style of my form. Currently it is in a
> simple 'Times New Roman' and I would like to have it differently (say
> verdana).
> 
> the jsp page looks like this (below) and I wonder where the code should be
> embedded? 
> 
> 
> <%@ include file="/pages/layouts/taglibs.jsp" %>
> <h2 class="menu" id=title>Add new Entity</h2>
> <%@ include file="tabMenu.jsp" %><body class="section-1">
> 
> 
> <s:form action="customize" validate="true">
> 		
> 	<s:textfield name="name" label="Legal Name" />		
> 	<s:textarea rows="5" cols="25" name="comment2" label="Comment" />	
> 			
> 	<s:submit action="customize_insert" label="Insert" align="center" />
>  	                         
> </s:form>

Use CSS to describe the display characteristics (font, etc.) you want, 
and an 'id' or 'cssClass' attribute on the s:form tag to link to the CSS 
rules. Alternatively, use a 'cssStyle' attribute on the s:form tag to 
inline the CSS.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org