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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.