The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Dropdown menu in XHTML, Getting errors from vaidator b/d of a menu
Allayna
post Jun 4 2008, 12:46 PM
Post #1





Group: Members
Posts: 1
Joined: 4-June 08
Member No.: 5,824



A couple different validators don't like the fact that I have a drop-down menu inside a table. I'm not sure how to fix this prob. the site is Site

heres the column in the table that has the menu:

<td valign="top">
<div class="menu"><b>Navigation</b></div>
<div style="overflow:auto; height:150px; width:140px"><br />
<form action="uri">
<select id="rukamenu"
onchange="location.href=(form.rukamenu.options[form.rukamenu.selectedIndex].value)">
<option value="0"></option>
<option value="index.htm">Home</option>
<option value="Screenshot.htm">Screenies</option>
<option value="Siggy.htm">Siggies</option>
</select>
</form>
</div>
</td>




* Line 32, character 84:

... kamenu.selectedIndex].value)">
^
Error: element select not allowed here; possible cause is an inline element containing a block-level element

This post has been edited by Allayna: Jun 4 2008, 01:02 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 4 2008, 01:03 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(Allayna @ Jun 4 2008, 07:46 PM) *

A couple different validators don't like the fact that I have a drop-down menu inside a table.


It doesn't have anything to do with that. In (X)HTML Strict form controls aren't allowed directly inside FORM, but should be nested in a block level element. You may use FIELDSET, but if you don't want to do that a simple DIV will do.

Go here and click the "Hide non strict..." button and read what FORM can contain.
http://htmlhelp.com/reference/html40/forms/form.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 12:22 PM