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

The xhtml head template extends the simple head template and provides an additional CSS that helps render the xhtml theme form elements. The contents of head.ftl are:

Content pulled from external source. Click here to refresh.
<link rel="stylesheet" href="<@ww.url value='/webwork/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; }
.errorLabel {font-style:italic; color:red; }
.errorMessage {font-weight:bold; text-align: center; color:red; }
.checkboxLabel {}
.checkboxErrorLabel {color:red; }
.required {color:red;}
.tdLabel {text-align:right; vertical-align:top; }