Jump to content

Problem with html forms (select and option tags)


sford999

Recommended Posts

Hi I`m having a few problems with the select and option tags

Basically if I have a normal drop down menu, the menu gets messed up like in the screenshot below

[url=http://www.carpfishinguk.net/messed_up.jpg]Messed up menu screenshot[/url]

but if I add the size="x" to the select tag the menu is in the correct place.

[url=http://www.carpfishinguk.net/should_be.jpg]How the menu should be[/url]

The code is below if anyone can help?

[url=http://www.carpfishinguk.net/code.txt]HTML code[/url]

[b]edit:[/b] added link to the html code as the forum wouldn`t let me include it in the code tags
Look at the screenshot [url=http://www.carpfishinguk.net/messed_up.jpg]HERE[/url] notice the menu is below the form, but if I add "size='x' to it it looks correct with the menu to the right, [url=http://www.carpfishinguk.net/should_be.jpg]screenshot[/url]

So basically this breaks the page
[code]<select name="category" class="textfield">
            <option value="1">A</option>
            ....snip....
            <option value="26">Z</option>
          </select>[/code]

And this fixes it
[code]<select name="category" class="textfield" size="4">
            <option value="1">A</option>
            ....snip....
            <option value="26">Z</option>
          </select>[/code]

but I want the drop down list, not the multiple choice menu on the page

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.