I would concentrate on fixing all the errors first. They will only create more grief as you go along.
Could you help me with this? :
Drop Down Menu in question:
http://www.deborahbrakeley.com/faq.html
Please preview in any browser other than IE since i haven't fixed for IE yet
All the errors that are coming up are due to the fact that I have multiple <div> elements nested within my <ul> elements... The errors state that I cannot have a <div> element within a <ul> element and then it gets confused thinking that the <li> elements are floating in the middle of nowhere with no opening and closing <ul></ul> tags.
Here is an example of my code:
- <div id="menubox"></div>
-
<div id="menu">
-
<ul id="nav">
-
-
<li>Home
-
<div id="home"> (hook for positioning drop down list)
-
-
<ul> (list that opens when "<li>Home" is hovered)
-
-
<div class="listbox"></div> (hook for transparent background)
-
-
<div class="col1"> (absolutely positioned column of text that appears in drop down list... needs to be absolutely positioned so the columns to the right of it stack up to the right and so it goes over top the transparent background.. may be another way to do this part)
-
-
<li><a href="home.html">Home</a></li>
-
<li><a href="contact.html">Contact Us</a></li>
-
<li><a href="about.html">About GBK</a></li>
-
<li><a href="">Meet the Artisans</a></li>
-
<li><a href="">Travel Information</a></li>
-
<li><a href="">GBK Photos</a></li>
-
<li><a href="">Fair Trade</a></li>
-
<li id="divider">.....................</li>
-
<li><a href="">Shipping</a></li>
-
<li><a href="faq.html">FAQ</a></li>
-
<li><a href="">Site Map</a></li>
-
</div>
-
<div class="footbox"></div>
-
<div class="listfooter">
-
<p>Welcome...</p>
-
</div>
-
</ul>
-
</div>
-
</li>
-
-
<li>India
-
<div id="india">
-
<ul>
-
<div class="listbox"></div>
-
<div class="col1">
-
<li><h1>Men's</h1></li>
-
<li><a href="">Shirts & Tops</a></li>
-
<li><a href="">Jackets</a></li>
-
<li><a href="">Sweaters</a></li>
-
<li><a href="">Beanies & Hats</a></li>
-
<li><a href="">Pants</a></li>
-
<li><a href="">Scarves</a></li>
-
<li><a href="">Belts</a></li>
-
<li><a href="">Sunglasses</a></li>
-
</div>
-
<div class="div1"></div>
-
<div class="col2">
-
<li><h1>Women's</h1></li>
-
<li><a href="">Shirts & Tops</a></li>
-
<li><a href="">Jackets</a></li>
-
<li><a href="">Sweaters</a></li>
-
<li><a href="">Beanies & Hats</a></li>
-
<li><a href="">Pants</a></li>
-
<li><a href="">Dresses & Skirts</a></li>
-
<li><a href="">Scarves</a></li>
-
<li><a href="">Belts</a></li>
-
<li><a href="">Purses</a></li>
-
<li><a href="">Sunglasses</a></li>
-
<li><a href="">Hair Accessories</a></li>
-
</div>
-
etc............
Here are the errors generated:
1. document type does not allow element "div" here; assuming missing "li" start-tag.
<div class="listbox"></div>
2. document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.
<li><a href="home.html">Home</a></li>
The <div> tags in bold are necessary to contain a transparent box behind the text. If the text in the lists were to be placed within the same element as the transparent box then the text too would become transparent.
Also, the transparent div's and the list div's have to be within the <ul> tags so that they open and close when they are hovered upon...
so basically, I am wondering if I should just ignore these errors because they are necessary or if there is another way to do this that complies to web standards?
thanks for reading through this...
Alex