sford999 Posted September 9, 2006 Share Posted September 9, 2006 Hi I`m having a few problems with the select and option tagsBasically 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 Quote Link to comment https://forums.phpfreaks.com/topic/20215-problem-with-html-forms-select-and-option-tags/ Share on other sites More sharing options...
ToonMariner Posted September 9, 2006 Share Posted September 9, 2006 DAft question but what is messed up with it exactly? I don't se anything wrong there... looks fine to me. Quote Link to comment https://forums.phpfreaks.com/topic/20215-problem-with-html-forms-select-and-option-tags/#findComment-88964 Share on other sites More sharing options...
sford999 Posted September 9, 2006 Author Share Posted September 9, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/20215-problem-with-html-forms-select-and-option-tags/#findComment-88967 Share on other sites More sharing options...
kenrbnsn Posted September 9, 2006 Share Posted September 9, 2006 Change the "size=4" to "size=1".Ken Quote Link to comment https://forums.phpfreaks.com/topic/20215-problem-with-html-forms-select-and-option-tags/#findComment-88975 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.