You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "victorsosa (JIRA)" <ji...@apache.org> on 2016/05/17 10:47:12 UTC
[jira] [Comment Edited] (WW-4634) Centre alignment doesn't seem to
work in Velocity tags
[ https://issues.apache.org/jira/browse/WW-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15286381#comment-15286381 ]
victorsosa edited comment on WW-4634 at 5/17/16 10:46 AM:
----------------------------------------------------------
HI,
I am not sure when this happen; but I think is because *align is Not supported in HTML5*.
http://www.w3schools.com/tags/att_td_align.asp
We shouldn't use the align attribute and instead use CSS.
was (Author: victorsosa):
HI,
I am not sure when this happen; but I think is because *align is Not supported in HTML5*.
http://www.w3schools.com/tags/att_td_align.asp
We should use the align attribute and instead use CSS.
> Centre alignment doesn't seem to work in Velocity tags
> ------------------------------------------------------
>
> Key: WW-4634
> URL: https://issues.apache.org/jira/browse/WW-4634
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.5
> Reporter: Jon Juaristi
> Priority: Minor
> Fix For: 2.5.1
>
>
> When using a tag in a Velocity template, for instance {{#stextfield("label=Foo" "align=center")}} with the default xhtml theme, inputs are prepended with just <td> instead of <td align="center"> (as it happens in 2.3.x) in the generated HTML. A form where you want to centre some of the inputs simply doesn't render as intended.
> I'm using Velocity 1.7 and Velocity Tools 2.0, if that helps.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)