struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Indu rekha Meduri, TLS-Chennai" <in...@hcl.in>
Subject RE: placing 2 buttons next to each other
Date Thu, 02 Aug 2007 09:48:23 GMT

Hi,

I tried this way. Hope this may help u too.

Css file:

.button {
	margin-top: 0;
	font-size: 10pt;
	text-align: center;
	background-color: white;
}

.buttonbar {
	padding-top: 1em;
	text-align: right;
}

Form: 

<table>
<tr>
		<td class="buttonbar" colspan="2">
	   		<s:submit cssClass="button" key="button.reset"
method="reset"/>
   			<s:submit cssClass="button" key="button.save"
method="update"/>
		</td>
	</tr>
</table>

The keys are being resolved from properties file. You can remove them
and give values.


Thanks & Regards,
Indu

-----Original Message-----
From: Session A Mwamufiya [mailto:smwamufi@andrew.cmu.edu] 
Sent: Thursday, August 02, 2007 1:39 PM
To: user@struts.apache.org
Subject: placing 2 buttons next to each other

Hi,

Is there a way to configure an s:form tag so that the 2 submit buttons
appear side by side instead of one under the other?  I use a css file
with input.actionButtons {float: left;} to move both of them to the
left, but they're not appearing next to each other.

Thanks,
Session


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


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named
recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or
opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of
HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and
/ or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited.
If you have 
received this email in error please delete it and notify the sender immediately. Before opening
any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

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


Mime
View raw message