Hi,
I am having a problem with the hv menu. I applied the hv menu using relative positioning and inserted the following code into my html document:
<table>
<tr><td>
<div id='MenuPos' style='position:relative; width:20; height:130;'><img src='./seethru.gif' width='20' height='130'></div>
</td></tr>
</table>
Everything looked great in Netscape, firefox, IE, and opera, and the menu was positioned in the place I wanted, and everything was perfect. However, at this time I did not have the doctype inserted to top of the html page. After inserting:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
to the page the menu is no longer alligned properly. In fact it behaves differently in each of the browsers. I have established that this doctype tag is the cause of the problem, but I do not know how to correct it. I am using a external css stylesheet, but do not know if I need to edit the css file, or the code in html document. Can anyone help me on this problem?
thanks, Kangepoeg



Reply With Quote

). Without a DOCTYPE, or with a malformed or incomplete one, user agents will use "Quirks Mode" where they try to emulate old bugs. For example, IE6 will use the severely broken IE5 box model. Clearly, the former is the route to getting similar behaviour across user agents.
).
Bookmarks