I want to change the html markup. I want to change the <dl> for a <div> tag and wrap the label and element together in a <div> tag so that I can apply floats to them.
At the moment my element output looks like this:
<fieldset id="fieldset-languages">
<legend>Languages</legend>
<dl>
<dt id="lang1-label">
<label for="lang1" class="optional">Language</label>
</dt>
<dd id="lang1-element">
<select name="lang1" id="lang1" class="input-select">
<option value="0" label="English">English</option>
<option value="1" label="French">French</option>
</select>
</dd>
<dt id="lang2-label">
<label for="lang1" class="optional">Language</label>
</dt>
<dd id="lang2-element">
<select name="lang2" id="lang2" class="input-select">
<option value="0" label="German">German</option>
<option value="1" label="Spanish">Spanish</option>
</select>
</dd>
</dl>
</fieldset>
and I want to change it to this...
<fieldset id="fieldset-languages">
<legend>Languages</legend>
<div>
<div>
<p id="lang1-label">
<label for="lang1" class="optional">Language</label>
</p>
<p id="lang1-element">
<select name="lang1" id="lang1" class="input-select">
<option value="0" label="English">English</option>
<option value="1" label="French">French</option>
</select>
</p>
</div>
<div>
<p id="lang2-label">
<label for="lang1" class="optional">Language</label>
</p>
<p id="lang2-element">
<select name="lang2" id="lang2" class="input-select">
<option value="0" label="German">German</option>
<option value="1" label="Spanish">Spanish</option>
</select>
</p>
</div>
</div>
</fieldset>
I've already figured out I can change the dt/dd to <p> tags using the Html decorator - but can't wrap the label and element in a div.