Thanks ag2simal that worked. But like you, I liked it better with the dividing lines. But I didnt want them to appear as dark or the same color as the section header so I added a new style to the table.
also by moving the css attributes to a template file takes away the ability to change attributes right with the forme, So I opted to leave it there. the only thing is you can not set a height for the fielddesc or the background color will be picked up by the div tag. and over each id.
heres the new style.
| Code: |
<style type="text/css">
<!--
.fielddescclass {
font-size: 14px;
color: #FFFFFF;
background: #333333;
text-decoration: none;
}
.fieldtitleclass {
font-size: 14px;
color:#0099CC
}
.fieldvaliclass {
color: #FF0000;
}
.line {
border-bottom: thin #c0c0c0 solid;
}
-->
</style>
<table class="line" width="100%">
<tr>
<td colspan="4" ><div class="fielddescclass" align="center">{fielddesc}</div></td>
</tr>
<tr>
<td width="10%" height="27"> </td>
<td width="40%"><div align="center"><span class="fieldtitleclass">{fieldtitle}</span></div></td>
<td width="5%"><div align="right"><span class="fieldvaliclass">{validationsign}</span></div></td>
<td width="45%"><span class="fieldclass">{field}</span></td>
</tr>
</table>
|
I havent done anything with the padding yet but the % can be changed easily to create the effect needed.
Thanks again for the help.
Post edited by: oleman, at: 2007/05/19 04:16