horizontal alignment of <s:submit> tag

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

horizontal alignment of <s:submit> tag

Patrick Kelly
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: [hidden email] <mailto:[hidden email]>
W: www.riverdynamics.com <http://www.riverdynamics.com/>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: horizontal alignment of <s:submit> tag

Patrick Kelly
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: [hidden email] <mailto:[hidden email]>
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: [hidden email]
> <mailto:[hidden email]>
> W: www.riverdynamics.com <http://www.riverdynamics.com/>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: horizontal alignment of <s:submit> tag

Lukasz Lenart
In reply to this post by Patrick Kelly
2017-04-03 8:30 GMT+02:00 Patrick Kelly <[hidden email]>:

> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: horizontal alignment of <s:submit> tag

Lukasz Lenart
In reply to this post by Patrick Kelly
2017-04-03 9:00 GMT+02:00 Patrick Kelly <[hidden email]>:
> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: horizontal alignment of <s:submit> tag

Lukasz Lenart
In reply to this post by Patrick Kelly
2017-04-03 8:30 GMT+02:00 Patrick Kelly <[hidden email]>:

> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...