You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Patrick Kelly <pa...@riverdynamics.com> on 2017/04/03 06:30:35 UTC

horizontal alignment of tag

Hi - I am upgrading from 2.3.32 to 2.5.10.1 and have noticed that the 
"submit" tag behaves differently.

In 2.3.32 <s:submit align="left" value="Save"/> will left align the 
submit button.

In 2.5.10.1 <s:submit align="left" value="Save"/> has the button right 
aligned.

Has the syntax changed?

Regards - Patrick

-- 
Patrick Kelly

PatrickKelly
PrincipalConsultant
*River**Dynamics*

E: patrick.kelly@riverdynamics.com <ma...@riverdynamics.com>
W: www.riverdynamics.com <http://www.riverdynamics.com/>


Re: horizontal alignment of tag

Posted by Lukasz Lenart <lu...@apache.org>.
2017-04-03 8:30 GMT+02:00 Patrick Kelly <pa...@riverdynamics.com>:
> Hi - I am upgrading from 2.3.32 to 2.5.10.1 and have noticed that the
> "submit" tag behaves differently.
>
> In 2.3.32 <s:submit align="left" value="Save"/> will left align the submit
> button.
>
> In 2.5.10.1 <s:submit align="left" value="Save"/> has the button right
> aligned.
>
> Has the syntax changed?

Yes, the "align" attribute was removed as it's deprecated in html5
[1], instead a CSS class was added - "formButton" - which you can use
in CSS stylesheet

.formButton {
  text-align: left;
}

[1] http://stackoverflow.com/questions/14551305/align-attribute-deprecated


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: horizontal alignment of tag

Posted by Lukasz Lenart <lu...@apache.org>.
2017-04-03 8:30 GMT+02:00 Patrick Kelly <pa...@riverdynamics.com>:
> Hi - I am upgrading from 2.3.32 to 2.5.10.1 and have noticed that the
> "submit" tag behaves differently.
>
> In 2.3.32 <s:submit align="left" value="Save"/> will left align the submit
> button.
>
> In 2.5.10.1 <s:submit align="left" value="Save"/> has the button right
> aligned.
>
> Has the syntax changed?

What theme do you use?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: horizontal alignment of tag

Posted by Lukasz Lenart <lu...@apache.org>.
2017-04-03 9:00 GMT+02:00 Patrick Kelly <pa...@riverdynamics.com>:
> I think I figured it out
>
> I need to use style="float: left" instead of align="left"
>
> If that is not the recommended approach then left me know.

I would rather use CSS instead of inlining style in tags.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: horizontal alignment of tag

Posted by Patrick Kelly <pa...@riverdynamics.com>.
I think I figured it out

I need to use style="float: left" instead of align="left"

If that is not the recommended approach then left me know.


Patrick Kelly

PatrickKelly
PrincipalConsultant
*River**Dynamics*

E: patrick.kelly@riverdynamics.com <ma...@riverdynamics.com>
W: www.riverdynamics.com <http://www.riverdynamics.com/>

On 3/04/2017 4:30 PM, Patrick Kelly wrote:
>
> Hi - I am upgrading from 2.3.32 to 2.5.10.1 and have noticed that the 
> "submit" tag behaves differently.
>
> In 2.3.32 <s:submit align="left" value="Save"/> will left align the 
> submit button.
>
> In 2.5.10.1 <s:submit align="left" value="Save"/> has the button right 
> aligned.
>
> Has the syntax changed?
>
> Regards - Patrick
>
> -- 
> Patrick Kelly
>
> PatrickKelly
> PrincipalConsultant
> *River**Dynamics*
>
> E: patrick.kelly@riverdynamics.com 
> <ma...@riverdynamics.com>
> W: www.riverdynamics.com <http://www.riverdynamics.com/>
>