Apache Struts 2 Documentation > Home > Guides > Tag Developers Guide > Struts Tags > UI Tags > Themes and Templates > css_xhtml theme > css_xhtml head template
Added by plightbo, last edited by Ted Husted on Sep 02, 2006  (view change)

The css_xhtml test:head template is very similar to the test:xhtml head template. The only difference is that CSS that is included is specifically designed to provide the layout for the test:css_xhtml theme. The contents of head.ftl are:

Content pulled from external source. Click here to refresh.
<link rel="stylesheet" href="<@ww.url value='/webwork/css_xhtml/styles.css' encode='false' includeParams='none'/>" type="text/css"/>
<#include "/${parameters.templateDir}/simple/head.ftl" />

The contents of styles.css are:

Content pulled from external source. Click here to refresh.
.wwFormTable {}
.label {
    font-style:italic;
    float:left;
    width:30%
}
.errorLabel {font-style:italic; color:red; }
.errorMessage {font-weight:bold; text-align: center; color:red; }
.checkboxLabel {}
.checkboxErrorLabel {color:red; }
.required {color:red;}