Wrapping the contact form (and other modules) in a <div> will only work if the module tags aren't input into TinyMCE but controlled by some other means. Otherwise you'll end up with <p><div class="contactform"><!-- contactform code --></div></p>, which doesn't fix the problem.
I have a workaround but it's a bit of a hack, by changing the last section of contactform.site.php to the following:
All it does is close the <p> tag before outputting the contact form, and then open another one afterwards so the tags match. It validates correctly and the layout seems unaffected (on Firefox and my site theme, haven't tried other browsers and themes), it's not exactly elegant though!
Wrapping the contact form (and other modules) in a <div> will only work if the module tags aren't input into TinyMCE but controlled by some other means. Otherwise you'll end up with <p><div class=" contactform" ><!-- contactform code --></div></p>, which doesn't fix the problem.
I have a workaround but it's a bit of a hack, by changing the last section of contactform. site.php to the following:
//Then show the contactform. m_name" ><?php echo $lang[' general' ]['name' ]; ?></label> rm_name" id="contactform _name" type="text" /> m_sender" ><?php echo $lang[' general' ]['email' ]; ?></label> rm_sender" id="contactform _sender" type="text" /> m_message" ><?php echo $lang[' general' ]['message' ]; ?></label> rm_message" id="contactform _message" rows="7" cols="45" ></textarea> general' ]['send' ]; ?>" />
?>
</p><!-- ADDED THIS -->
<form method="post" action="" id="contactform">
<div>
<label for="contactfor
<br />
<input name="contactfo
<br />
<label for="contactfor
<br />
<input name="contactfo
<br />
<label for="contactfor
<br />
<textarea name="contactfo
<br />
<input type="submit" name="submit" value="<?php echo $lang['
</div>
</form>
<p><!-- ADDED THIS -->
<?php
}
?>
All it does is close the <p> tag before outputting the contact form, and then open another one afterwards so the tags match. It validates correctly and the layout seems unaffected (on Firefox and my site theme, haven't tried other browsers and themes), it's not exactly elegant though!