I see the ‘More Action’ drop-down box in gmail inbox page. It has levels and some disabled item in the list.
How to do that in HTML+CSS?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can group and disable elements in an HTML
<select>element without resorting to the use of JavaScript. Something like the following should work:A brief inspection in Firebug shows that Google are faking their drop-down box with a whole bunch of HTML and some clever CSS. Personally, I think taking the ‘correct’ approach and styling it to look prettier is a lot more readable than reinventing the wheel here.