VatsaL Posted October 29, 2006 Share Posted October 29, 2006 Hello all,I had seen a "heading" effect in a dropdown box somewhere before, but can't find it now.Its something like this: http://www.b3ta.cr3ation.co.uk/data/JPG/dropdown.JPGwhere you can create a heading inside a dropdown box with just a simple html tag, if I remeber correctly.I cant find the code for it now.Anyone know how to create a heading inside the dropdown box? what code to use?thanksVatsaL Link to comment Share on other sites More sharing options...
Skemcin Posted October 30, 2006 Share Posted October 30, 2006 like this: <form action="##" method="post"><select name="cssdropdown"><option value="0">-- select one --</option><option value="0"></option><option value="a" style="font-weight:bold; background-color:#F0F0F0;">- Serch Engines</option><option value="a1"> · Google</option><option value="a2"> · DMOZ</option><option value="a3"> · Yahoo</option><option value="a4"> · Lycos</option><option value="a5"> · Alta Vista</option><option value="b" style="font-weight:bold; background-color:#F0F0F0;">- Web Mail</option><option value="b1"> · Gmail</option><option value="b2"> · Yahoo</option><option value="b3"> · AOL</option></select></form> in action:http://www.iribbit.net/i/_files/css_dropdown.htm Link to comment Share on other sites More sharing options...
jesh Posted October 30, 2006 Share Posted October 30, 2006 You might be looking for the optgroup tag. Link to comment Share on other sites More sharing options...
VatsaL Posted October 30, 2006 Author Share Posted October 30, 2006 You might be looking for the optgroup tag.Yesss.. thanks! That was what I was lookin for. And the css enabled is not bad too.Thank youVatsaL Link to comment Share on other sites More sharing options...
holmedwa04 Posted October 30, 2006 Share Posted October 30, 2006 So, would something like this allow you to click the different things in the list as though they were hyperlinks, or is this just for a form? Link to comment Share on other sites More sharing options...
VatsaL Posted October 31, 2006 Author Share Posted October 31, 2006 So, would something like this allow you to click the different things in the list as though they were hyperlinks, or is this just for a form?both. Link to comment Share on other sites More sharing options...
holmedwa04 Posted October 31, 2006 Share Posted October 31, 2006 Do you mean both in one or you could change the functionality of it to whichever you like? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now