Jump to content

Archived

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

sford999

Problem with html forms (select and option tags)

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

Share this post


Link to post
Share on other sites
DAft question but what is messed up with it exactly? I don't se anything wrong there... looks fine to me.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

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.