You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2015/06/26 21:53:30 UTC

[04/10] struts git commit: replaced inline styles with classes

replaced inline styles with classes


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/af0f3cf1
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/af0f3cf1
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/af0f3cf1

Branch: refs/heads/master
Commit: af0f3cf1d1ba589ae7654ef9408d8f35c342b333
Parents: 8953ae3
Author: Aleksandr Mashchenko <al...@gmail.com>
Authored: Thu Jun 5 09:47:07 2014 +0300
Committer: Aleksandr Mashchenko <al...@gmail.com>
Committed: Thu Jun 5 09:47:07 2014 +0300

----------------------------------------------------------------------
 core/src/main/resources/template/css_xhtml/reset.ftl      |  2 +-
 core/src/main/resources/template/css_xhtml/styles.css     |  7 +++++++
 core/src/main/resources/template/css_xhtml/submit.ftl     |  2 +-
 .../resources/template/simple/inputtransferselect.ftl     |  2 +-
 .../resources/template/simple/optiontransferselect.ftl    |  2 +-
 core/src/main/resources/template/simple/table.ftl         | 10 +++++-----
 core/src/main/resources/template/xhtml/checkbox.ftl       |  6 +++---
 core/src/main/resources/template/xhtml/controlfooter.ftl  |  2 +-
 .../main/resources/template/xhtml/controlheader-core.ftl  |  4 ++--
 core/src/main/resources/template/xhtml/controlheader.ftl  |  2 +-
 core/src/main/resources/template/xhtml/reset.ftl          |  2 +-
 core/src/main/resources/template/xhtml/styles.css         |  9 ++++++++-
 core/src/main/resources/template/xhtml/submit.ftl         |  2 +-
 core/src/main/resources/template/xhtml/validation.js      |  2 +-
 .../org/apache/struts2/views/jsp/ui/Checkbox-1.txt        |  4 ++--
 .../org/apache/struts2/views/jsp/ui/Checkbox-2.txt        |  4 ++--
 .../org/apache/struts2/views/jsp/ui/Checkbox-3.txt        |  8 ++++----
 .../org/apache/struts2/views/jsp/ui/Checkbox-33.txt       |  8 ++++----
 .../org/apache/struts2/views/jsp/ui/Checkbox-5.txt        |  4 ++--
 .../org/apache/struts2/views/jsp/ui/Checkbox-6.txt        |  4 ++--
 .../org/apache/struts2/views/jsp/ui/Formtag-27.txt        |  2 +-
 .../resources/org/apache/struts2/views/jsp/ui/Label-3.txt |  2 +-
 .../resources/org/apache/struts2/views/jsp/ui/Reset-1.txt |  2 +-
 .../resources/org/apache/struts2/views/jsp/ui/Reset-2.txt |  2 +-
 .../resources/org/apache/struts2/views/jsp/ui/Reset-3.txt |  2 +-
 .../resources/org/apache/struts2/views/jsp/ui/Reset-4.txt |  2 +-
 .../resources/org/apache/struts2/views/jsp/ui/Reset-5.txt |  2 +-
 .../resources/org/apache/struts2/views/jsp/ui/Reset-6.txt |  2 +-
 .../org/apache/struts2/views/jsp/ui/Submit-1.txt          |  2 +-
 .../org/apache/struts2/views/jsp/ui/Submit-2.txt          |  2 +-
 .../org/apache/struts2/views/jsp/ui/Submit-3.txt          |  2 +-
 .../org/apache/struts2/views/jsp/ui/Submit-4.txt          |  2 +-
 .../org/apache/struts2/views/jsp/ui/Submit-5.txt          |  2 +-
 .../org/apache/struts2/views/jsp/ui/Submit-6.txt          |  2 +-
 .../org/apache/struts2/views/jsp/ui/Textfield-2.txt       |  2 +-
 .../org/apache/struts2/views/jsp/ui/Textfield-8.txt       |  2 +-
 .../org/apache/struts2/views/jsp/ui/Textfield-9.txt       |  2 +-
 .../apache/struts2/views/jsp/ui/inputtransferselect-1.txt |  2 +-
 .../struts2/views/jsp/ui/optiontransferselect-1.txt       |  2 +-
 .../struts2/views/jsp/ui/optiontransferselect-2.txt       |  2 +-
 .../struts2/views/jsp/ui/optiontransferselect-3.txt       |  2 +-
 .../struts2/views/jsp/ui/optiontransferselect-4.txt       |  2 +-
 .../struts2/views/jsp/ui/optiontransferselect-5.txt       |  2 +-
 .../struts2/views/jsp/ui/optiontransferselect-6.txt       |  2 +-
 .../struts2/views/jsp/ui/optiontransferselect-7.txt       |  2 +-
 .../apache/struts2/views/jsp/ui/validationstyles-1.txt    |  2 +-
 .../apache/struts2/views/jsp/ui/validationstyles-2.txt    |  2 +-
 .../apache/struts2/views/jsp/ui/validationstyles-3.txt    |  2 +-
 48 files changed, 78 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/css_xhtml/reset.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/css_xhtml/reset.ftl b/core/src/main/resources/template/css_xhtml/reset.ftl
index ab6f6ef..6d7734f 100644
--- a/core/src/main/resources/template/css_xhtml/reset.ftl
+++ b/core/src/main/resources/template/css_xhtml/reset.ftl
@@ -31,7 +31,7 @@
 <span <#rt/>
 </#if>
 <#if parameters.align??>
-    style="text-align: ${parameters.align?html};"<#t/>
+    align="${parameters.align?html}"<#t/>
 </#if>
 <#if parameters.id??>
     id="wwctrl_${parameters.id}"<#rt/>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/css_xhtml/styles.css
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/css_xhtml/styles.css b/core/src/main/resources/template/css_xhtml/styles.css
index d17b53c..08a70f4 100644
--- a/core/src/main/resources/template/css_xhtml/styles.css
+++ b/core/src/main/resources/template/css_xhtml/styles.css
@@ -30,3 +30,10 @@
 .checkboxLabel {}
 .checkboxErrorLabel {color:red; }
 .required {color:red;}
+
+.tdTransferSelect {text-align:center; vertical-align:middle;}
+.tdLabelTop {text-align:left; vertical-align:top;}
+.tdCheckboxLabel {text-align:right; vertical-align:top;}
+.tdCheckboxInput {text-align:left; vertical-align:top;}
+.tdCheckboxErrorMessage {text-align:left; vertical-align:top;}
+.tdErrorMessage {text-align:center; vertical-align:top;}

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/css_xhtml/submit.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/css_xhtml/submit.ftl b/core/src/main/resources/template/css_xhtml/submit.ftl
index b981d66..ffb4df9 100644
--- a/core/src/main/resources/template/css_xhtml/submit.ftl
+++ b/core/src/main/resources/template/css_xhtml/submit.ftl
@@ -31,7 +31,7 @@
 <span <#rt/>
 </#if>
 <#if parameters.align??>
-    style="text-align: ${parameters.align?html};"<#t/>
+    align="${parameters.align?html}"<#t/>
 </#if>
 <#if parameters.id??>
     id="wwctrl_${parameters.id}"<#rt/>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/simple/inputtransferselect.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/simple/inputtransferselect.ftl b/core/src/main/resources/template/simple/inputtransferselect.ftl
index 67cc011..20c3084 100644
--- a/core/src/main/resources/template/simple/inputtransferselect.ftl
+++ b/core/src/main/resources/template/simple/inputtransferselect.ftl
@@ -61,7 +61,7 @@
 
 
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<#assign addLabel=parameters.addLabel?default("->")?html /><#t/>
 	<input type="button"
 		<#if parameters.buttonCssClass??><#t/>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/simple/optiontransferselect.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/simple/optiontransferselect.ftl b/core/src/main/resources/template/simple/optiontransferselect.ftl
index 571652b..6fa85a8 100644
--- a/core/src/main/resources/template/simple/optiontransferselect.ftl
+++ b/core/src/main/resources/template/simple/optiontransferselect.ftl
@@ -47,7 +47,7 @@
 </#if>
 
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<#if parameters.allowAddToLeft?default(true)><#t/>
 		<#assign addToLeftLabel = parameters.addToLeftLabel?default("<-")?html/><#t/>
 		<#if parameters.doubleHeaderKey??><#t/>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/simple/table.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/simple/table.ftl b/core/src/main/resources/template/simple/table.ftl
index 7d403cd..d7efb06 100644
--- a/core/src/main/resources/template/simple/table.ftl
+++ b/core/src/main/resources/template/simple/table.ftl
@@ -24,7 +24,7 @@
 <#assign tableModel = webTable.model/>
 
 <#if tableModel??>
-<p style="text-align: center;">
+<p align="center">
 <table bgcolor="white" border="0" cellpadding="1" cellspacing="0" >
     <tr>
         <td>
@@ -40,16 +40,16 @@
                                 <td>
                                     <table border="0" cellspacing="0" cellpadding="0">
                                         <tr>
-                                            <td style="vertical-align: bottom;">
+                                            <td align="bottom">
 <#if false>
-                                                 <img src="images/sorted_asc.gif" border="0" style="vertical-align: bottom;" />
+                                                 <img src="images/sorted_asc.gif" border="0" align="bottom" />
 <#else>
-                                                <a href="<@s.url><@s.param name="${webTable.sortColumnLinkName}" value="${curColumn.offset}"/><@s.param name="${webTable.sortOrderLinkName}" value="ASC"/></...@s.url>"><img src="images/unsorted_asc.gif" border="0" style="vertical-align: bottom;"/></a>
+                                                <a href="<@s.url><@s.param name="${webTable.sortColumnLinkName}" value="${curColumn.offset}"/><@s.param name="${webTable.sortOrderLinkName}" value="ASC"/></...@s.url>"><img src="images/unsorted_asc.gif" border="0" align="bottom"/></a>
 </#if>
                                             </td>
                                         </tr>
                                         <tr>
-                                            <td style="vertical-align: top;"></td>
+                                            <td align="top"></td>
                                         </tr>
                                     </table>
                                 </td>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/checkbox.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/checkbox.ftl b/core/src/main/resources/template/xhtml/checkbox.ftl
index e931572..d845065 100644
--- a/core/src/main/resources/template/xhtml/checkbox.ftl
+++ b/core/src/main/resources/template/xhtml/checkbox.ftl
@@ -28,7 +28,7 @@
  errorFor="${parameters.id}"<#rt/>
 </#if>
 >
-    <td style="text-align: left; vertical-align: top;" colspan="2"><#rt/>
+    <td class="tdCheckboxErrorMessage" colspan="2"><#rt/>
         <span class="errorMessage">${error?html}</span><#t/>
     </td><#lt/>
 </tr>
@@ -72,7 +72,7 @@ ${parameters.label?html}<#t/>
         <#include "/${parameters.templateDir}/simple/checkbox.ftl" />
 <#else>
 <tr>
-	<td style="text-align: right; vertical-align: top;">
+	<td class="tdCheckboxLabel">
 <#if labelpos?default("") == 'left'>
 <#if parameters.label??> <label<#t/>
 <#if parameters.id??>
@@ -107,7 +107,7 @@ ${parameters.label?html}<#t/>
     </#if>
 </#if>
     </td>
-    <td style="text-align: left; vertical-align: top;">
+    <td class="tdCheckboxInput">
 
 <#if labelpos?default("") != 'top'>
                 	<#include "/${parameters.templateDir}/simple/checkbox.ftl" />

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/controlfooter.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/controlfooter.ftl b/core/src/main/resources/template/xhtml/controlfooter.ftl
index afa1612..ef3f3ca 100644
--- a/core/src/main/resources/template/xhtml/controlfooter.ftl
+++ b/core/src/main/resources/template/xhtml/controlfooter.ftl
@@ -28,7 +28,7 @@ ${parameters.after?if_exists}<#t/>
 <#if hasFieldErrors>
 <#list fieldErrors[parameters.name] as error>
 <tr errorFor="${parameters.id}">
-    <td style="text-align: center; vertical-align: top;" colspan="2"><#rt/>
+    <td class="tdErrorMessage" colspan="2"><#rt/>
         <span class="errorMessage">${error?html}</span><#t/>
     </td><#lt/>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/controlheader-core.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/controlheader-core.ftl b/core/src/main/resources/template/xhtml/controlheader-core.ftl
index ec6b1ac..5835a84 100644
--- a/core/src/main/resources/template/xhtml/controlheader-core.ftl
+++ b/core/src/main/resources/template/xhtml/controlheader-core.ftl
@@ -29,7 +29,7 @@
 <#if hasFieldErrors>
 <#list fieldErrors[parameters.name] as error>
 <tr errorFor="${parameters.id}">
-    <td style="text-align: center; vertical-align: top;" colspan="2"><#rt/>
+    <td class="tdErrorMessage" colspan="2"><#rt/>
         <span class="errorMessage">${error?html}</span><#t/>
     </td><#lt/>
 </tr>
@@ -47,7 +47,7 @@
 -->
 <tr>
 <#if labelpos?default("") == 'top'>
-    <td style="text-align: left; vertical-align: top;" colspan="2"><#rt/>
+    <td class="tdLabelTop" colspan="2"><#rt/>
 <#else>
     <td class="tdLabel"><#rt/>
 </#if>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/controlheader.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/controlheader.ftl b/core/src/main/resources/template/xhtml/controlheader.ftl
index a69bd39..4a15058 100644
--- a/core/src/main/resources/template/xhtml/controlheader.ftl
+++ b/core/src/main/resources/template/xhtml/controlheader.ftl
@@ -23,6 +23,6 @@
 <#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" />
     <td
 <#if parameters.align??>
-    style="text-align: ${parameters.align?html};"<#t/>
+    align="${parameters.align?html}"<#t/>
 </#if>
 ><#t/>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/reset.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/reset.ftl b/core/src/main/resources/template/xhtml/reset.ftl
index 34e0718..8e6e2b5 100644
--- a/core/src/main/resources/template/xhtml/reset.ftl
+++ b/core/src/main/resources/template/xhtml/reset.ftl
@@ -23,7 +23,7 @@
 <tr>
     <td colspan="2"><div <#rt/>
 <#if parameters.align??>
-    style="text-align: ${parameters.align?html};"<#t/>
+    align="${parameters.align?html}"<#t/>
 </#if>
 ><#t/>
 <#include "/${parameters.templateDir}/simple/reset.ftl" />

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/styles.css
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/styles.css b/core/src/main/resources/template/xhtml/styles.css
index dd54904..39fea48 100644
--- a/core/src/main/resources/template/xhtml/styles.css
+++ b/core/src/main/resources/template/xhtml/styles.css
@@ -26,4 +26,11 @@
 .checkboxLabel {}
 .checkboxErrorLabel {color:red; }
 .required {color:red;}
-.tdLabel {text-align:right; vertical-align:top; } 
+.tdLabel {text-align:right; vertical-align:top; }
+
+.tdTransferSelect {text-align:center; vertical-align:middle;}
+.tdLabelTop {text-align:left; vertical-align:top;}
+.tdCheckboxLabel {text-align:right; vertical-align:top;}
+.tdCheckboxInput {text-align:left; vertical-align:top;}
+.tdCheckboxErrorMessage {text-align:left; vertical-align:top;}
+.tdErrorMessage {text-align:center; vertical-align:top;}

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/submit.ftl
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/submit.ftl b/core/src/main/resources/template/xhtml/submit.ftl
index 71c8153..7b82921 100644
--- a/core/src/main/resources/template/xhtml/submit.ftl
+++ b/core/src/main/resources/template/xhtml/submit.ftl
@@ -23,7 +23,7 @@
 <tr>
     <td colspan="2"><div <#rt/>
 <#if parameters.align??>
-    style="text-align: ${parameters.align?html};"<#t/>
+    align="${parameters.align?html}"<#t/>
 </#if>
 ><#t/>
 <#include "/${parameters.templateDir}/simple/submit.ftl" />

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/main/resources/template/xhtml/validation.js
----------------------------------------------------------------------
diff --git a/core/src/main/resources/template/xhtml/validation.js b/core/src/main/resources/template/xhtml/validation.js
index de4b0bd..feb1a9d 100644
--- a/core/src/main/resources/template/xhtml/validation.js
+++ b/core/src/main/resources/template/xhtml/validation.js
@@ -109,7 +109,7 @@ function addErrorXHTML(e, errorText) {
         var tr = document.createElement("tr");
         var td = document.createElement("td");
         var span = document.createElement("span");
-        td.style = "text-align: center; vertical-align: top;";
+        td.className = "tdErrorMessage";
         td.colSpan = 2;
         span.setAttribute("class", "errorMessage");
         span.setAttribute("className", "errorMessage"); //ie hack cause ie does not support setAttribute

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt
index 6db63a0..b746088 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt
@@ -1,7 +1,7 @@
 <tr>
-	<td style="text-align: right; vertical-align: top;">
+	<td class="tdCheckboxLabel">
 	</td>
-    <td style="text-align: left; vertical-align: top;">
+    <td class="tdCheckboxInput">
 		<input type="checkbox" name="foo" value="baz" checked="checked" id="someId" title="mytitle" onfocus="test();"/>
 		<input type="hidden" id="__checkbox_someId" name="__checkbox_foo" value="baz"/>
         <label for="someId" class="checkboxLabel">mylabel</label>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt
index 1a95592..caf4632 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt
@@ -1,7 +1,7 @@
 <tr>
-	<td style="text-align: right; vertical-align: top;">
+	<td class="tdCheckboxLabel">
 	</td>
-    <td style="text-align: left; vertical-align: top;">
+    <td class="tdCheckboxInput">
         <input type="checkbox" name="foo" value="baz" id="foo" title="mytitle"/>
         <input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz"/>
         <label for="foo" class="checkboxLabel">mylabel</label>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt
index 0e863cd..68b91f3 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt
@@ -1,14 +1,14 @@
 <tr errorFor="foo">
-    <td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
+    <td class="tdCheckboxErrorMessage" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
 </tr>
 <tr errorFor="foo">
-    <td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
+    <td class="tdCheckboxErrorMessage" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
 </tr>
 <tr>
-	<td style="text-align: right; vertical-align: top;">
+	<td class="tdCheckboxLabel">
 	
 	</td>
-    <td style="text-align: left; vertical-align: top;">
+    <td class="tdCheckboxInput">
           <input type="checkbox" name="foo" value="baz" checked="checked" id="foo" class="myErrorClass" title="mytitle" onclick="test();" ondblclick="test();"/>
           <input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz"/>
           <label for="foo" class="checkboxErrorLabel">mylabel</label>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt
index d379d56..ef05dc4 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt
@@ -1,14 +1,14 @@
 <tr errorFor="foo">
-    <td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
+    <td class="tdCheckboxErrorMessage" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
 </tr>
 <tr errorFor="foo">
-    <td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
+    <td class="tdCheckboxErrorMessage" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
 </tr>
 <tr>
-	<td style="text-align: right; vertical-align: top;">
+	<td class="tdCheckboxLabel">
 	
 	</td>
-    <td style="text-align: left; vertical-align: top;">
+    <td class="tdCheckboxInput">
           <input type="checkbox" name="foo" value="baz" checked="checked" id="foo" style="color:red" title="mytitle" onclick="test();" ondblclick="test();"/>
           <input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz"/>
           <label for="foo" class="checkboxErrorLabel">mylabel</label>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt
index e771e45..49e093c 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt
@@ -1,8 +1,8 @@
 <tr>
-	<td style="text-align: right; vertical-align: top;">
+	<td class="tdCheckboxLabel">
 	    <label for="someId" class="checkboxLabel">mylabel:</label>
 	</td>
-    <td style="text-align: left; vertical-align: top;">
+    <td class="tdCheckboxInput">
 		<input type="checkbox" name="foo" value="baz" checked="checked" id="someId" title="mytitle" onfocus="test();"/>
 		<input type="hidden" id="__checkbox_someId" name="__checkbox_foo" value="baz"/>
     </td>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt
index 0fa78fb..c54c862 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt
@@ -1,7 +1,7 @@
 <tr>
-	<td style="text-align: right; vertical-align: top;">
+	<td class="tdCheckboxLabel">
 	</td>
-    <td style="text-align: left; vertical-align: top;">
+    <td class="tdCheckboxInput">
 		<input type="checkbox" name="foo" value="baz" checked="checked" disabled="disabled" id="foo" title="mytitle" />
 		<input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz" disabled="disabled"/>
 		<label for="foo" class="checkboxLabel">mylabel</label>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt
index 4424175..a9b9244 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt
@@ -1,7 +1,7 @@
 <form id="testAction" name="testAction" action="/testAction.action" method="post">
 <table class="wwFormTable">
     <tr>
-        <td style="text-align: left; vertical-align: top;" colspan="2"><label class="label">label:</label></td>
+        <td class="tdLabelTop" colspan="2"><label class="label">label:</label></td>
     </tr>
     <tr>
         <td><input type="text" name=""/></td>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt
index 701c21b..d66737f 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt
@@ -1,5 +1,5 @@
 <tr>
-    <td style="text-align: left; vertical-align: top;" colspan="2"><label for="myname" class="label">mylabel:</label></td>
+    <td class="tdLabelTop" colspan="2"><label for="myname" class="label">mylabel:</label></td>
 </tr>
 <tr>
     <td><label id="myname">bar</label></td>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt
index 685b21f..c89899b 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: left;"><input type="reset" name="myname" value="bar"/></div></td>
+    <td colspan="2"><div align="left"><input type="reset" name="myname" value="bar"/></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt
index 7442b01..279c143 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><input type="reset" name="myname" value="Reset" title="mytitle"/></div></td>
+    <td colspan="2"><div align="right"><input type="reset" name="myname" value="Reset" title="mytitle"/></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt
index b22e46b..9497bb6 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><button type="reset" name="myname" value="bar">bar</button></div></td>
+    <td colspan="2"><div align="right"><button type="reset" name="myname" value="bar">bar</button></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt
index 6bd92a6..3fa4c37 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: left;"><button type="reset" name="myname" value="bar">mylabel</button></div></td>
+    <td colspan="2"><div align="left"><button type="reset" name="myname" value="bar">mylabel</button></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt
index c426384..fbab3f6 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><button type="reset" name="myname" value="bar" disabled="disabled">bar</button></div></td>
+    <td colspan="2"><div align="right"><button type="reset" name="myname" value="bar" disabled="disabled">bar</button></div></td>
 </tr>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt
index 1a3d04b..39a2906 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><button type="reset" name="myname" value="bar"><img alt="mylabel" src="some.gif"/></button></div></td>
+    <td colspan="2"><div align="right"><button type="reset" name="myname" value="bar"><img alt="mylabel" src="some.gif"/></button></div></td>
 </tr>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt
index 24a98d5..9057dd2 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: left;"><input type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1"/></div></td>
+    <td colspan="2"><div align="left"><input type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1"/></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt
index 9a72d99..42e7f1d 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><input type="submit" id="myname" name="myname" value="Submit" title="mytitle"/></div></td>
+    <td colspan="2"><div align="right"><input type="submit" id="myname" name="myname" value="Submit" title="mytitle"/></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt
index f49d3d0..a2e9c8a 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><button type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1">bar</button></div></td>
+    <td colspan="2"><div align="right"><button type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1">bar</button></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt
index 67a1274..17b846d 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: left;"><button type="submit" id="myname" name="myname" value="bar">mylabel</button></div></td>
+    <td colspan="2"><div align="left"><button type="submit" id="myname" name="myname" value="bar">mylabel</button></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt
index a4b3ccf..b55832d 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><input type="image" alt="bar" id="myname" name="myname" value="bar" disabled="disabled"/></div></td>
+    <td colspan="2"><div align="right"><input type="image" alt="bar" id="myname" name="myname" value="bar" disabled="disabled"/></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt
index c80fedc..59b886d 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt
@@ -1,3 +1,3 @@
 <tr>
-    <td colspan="2"><div style="text-align: right;"><input type="image" alt="mylabel" src="some.gif" id="myname" name="myname" value="bar"/></div></td>
+    <td colspan="2"><div align="right"><input type="image" alt="mylabel" src="some.gif" id="myname" name="myname" value="bar"/></div></td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt
index 99965b9..fc37089 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt
@@ -1,5 +1,5 @@
 <tr errorFor="myId">
-    <td style="text-align: center; vertical-align: top;" colspan="2"><span class="errorMessage">bar error message</span></td>
+    <td class="tdErrorMessage" colspan="2"><span class="errorMessage">bar error message</span></td>
 </tr>
 <tr>
     <td class="tdLabel"><label for="myId" class="errorLabel">mylabel:</label></td>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt
index 4ec1cdd..b3e3add 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt
@@ -7,7 +7,7 @@
     </td>
 </tr>
 <tr errorFor="myId">
-    <td style="text-align: center; vertical-align: top;" colspan="2">
+    <td class="tdErrorMessage" colspan="2">
         <span class="errorMessage">barerrormessage</span>
     </td>
 </tr>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt
index 90950fb..a0cb054 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt
@@ -1,5 +1,5 @@
 <tr errorFor="myId">
-    <td style="text-align: center; vertical-align: top;" colspan="2">
+    <td class="tdErrorMessage" colspan="2">
         <span class="errorMessage">barerrormessage</span>
     </td>
 </tr>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt
index f62d399..e3acfbc 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt
@@ -4,7 +4,7 @@
   <script type="text/javascript" src="/struts/inputtransferselect.js"></script>
   <tableborder="0">
   <tr><td><input type="text" name="collection_input" id="collection_input"/></td>
-      <td style="text-align: center; vertical-align: middle;"><inputtype="button"value="-&gt;"onclick="addOption(document.getElementById('collection_input'),document.getElementById('collection'))"/>
+      <td class="tdTransferSelect"><inputtype="button"value="-&gt;"onclick="addOption(document.getElementById('collection_input'),document.getElementById('collection'))"/>
       <br/><br/>
       <input type="button"value="&lt;-"onclick="removeOptions(document.getElementById('collection'))"/>
       <br/><br/>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt
index d220bcd..b28df02 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt
@@ -16,7 +16,7 @@
 	<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
 	<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"
 			value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt
index 57afc51..ce55f65 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt
@@ -17,7 +17,7 @@
 	<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
 	<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"
 			value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt
index 55e43c0..13be1df 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt
@@ -16,7 +16,7 @@
 	<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', '');" value="v" />
 	<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', '');" value="^" />
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"
 			value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, '');" /><br/><br/>
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt
index 49859ce..3e55b06 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt
@@ -17,7 +17,7 @@
 	<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
 	<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"
 			value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, '');" /><br/><br/>
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt
index 178aef4..0e9bdd9 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt
@@ -16,7 +16,7 @@
 	<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
 	<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"
 			value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt
index a6ccbca..992c30b 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt
@@ -17,7 +17,7 @@
 	<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
 	<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"
 			value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt
index 2ca0077..0392c0a 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt
@@ -17,7 +17,7 @@
 	<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
 	<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
 </td>
-<td style="text-align: center; vertical-align: middle;">
+<td class="tdTransferSelect">
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"
 			value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');alert('Moving Left');" /><br/><br/>
 	<input type="button" class="buttonCssClass" style="buttonCssStyle"

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-1.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-1.txt
index b869b01..57bfbf6 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-1.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-1.txt
@@ -1,5 +1,5 @@
 <tr errorFor="myId">
-    <td style="text-align: center; vertical-align: top;" colspan="2"><span class="errorMessage">bar error message</span></td>
+    <td class="tdErrorMessage" colspan="2"><span class="errorMessage">bar error message</span></td>
 </tr>
 <tr>                                    
     <td class="tdLabel"><label for="myId" class="errorLabel">mylabel:</label></td>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt
index 0fa3cc7..e965d43 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt
@@ -1,5 +1,5 @@
 <tr errorFor="myId">
-    <td style="text-align: center; vertical-align: top;" colspan="2"><span class="errorMessage">bar error message</span></td>
+    <td class="tdErrorMessage" colspan="2"><span class="errorMessage">bar error message</span></td>
 </tr>
 <tr>
     <td class="tdLabel"><label for="myId" class="errorLabel">mylabel:</label></td>

http://git-wip-us.apache.org/repos/asf/struts/blob/af0f3cf1/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt
----------------------------------------------------------------------
diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt
index 7ffa50a..67d52b2 100644
--- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt
+++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt
@@ -1,5 +1,5 @@
 <tr errorFor="myId">
-    <td style="text-align: center; vertical-align: top;" colspan="2"><span class="errorMessage">bar error message</span></td>
+    <td class="tdErrorMessage" colspan="2"><span class="errorMessage">bar error message</span></td>
 </tr>
 <tr>
     <td class="tdLabel"><label for="myId" class="errorLabel">mylabel:</label></td>