hi,
adding images to my megamenu, if you hover over bikes you will see the images.
it looks ok for me but when i validate it with http://validator.w3.org/ it gives me errors
here is code ive added to give me image
PHP Code:$result .= '<div style="height: ' . MEGAMENU1_ICON_IMAGE_HEIGHT . 'px; margin: 0 auto;">' . zen_image(DIR_WS_IMAGES . $category['image'], 'View our Range of ' . $category['name'] . ' Bicycles ', MEGAMENU1_ICON_IMAGE_WIDTH, MEGAMENU1_ICON_IMAGE_HEIGHT) . '</div><div style="height: 50px; margin: 0 auto;">' . $category['name'] . '</div>';
errors i get include these
any help appreciated
thanks
bn17311
Line 213, Column 164: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…style="height: 106px; margin: 0 auto;"><img src="images/cats/rbg09.jpg" alt="V…
✉
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>").
and
Error Line 213, Column 371: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…div><div style="height: 50px; margin: 0 auto;">12 Boys 3+Yrs</div></a></li><li>
✉
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>").


Reply With Quote
