Spent a lot of time yesterday moving all my new routines into 'production. I have one error in the validation routine.
I have made a change in header.php to show the Metric /Imperial Temps on the top, title line and it's not real happy with what I did.
The code is ---
<!-- header -->
<div id="header">
<h2 class="headerTitle">
<a href="index.php" title="Browse to homepage"><?php echo langtransstr($SITE['organ']); ?></a>
<div style="float: right;" >
<span class="doNotPrint">
Currently it's
<?php echo $tempinmetric;?> - <?php echo $temperature;?></span>
</div>
and the error message is --
Line 174, Column 35: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<div style="float: right;" >
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").Tells me that float, or the way I've used it, is invalid.
How should I go about fixing it?
weather.azkiwis.netThanks
Ken