So basically i created a dropdown menu using this method:
Controller:
all_useroptions = []
for opt in db().select(db.useroptions.ALL):
all_useroptions.append(OPTION(opt.symbol, _value=opt.id))
opt_sel = SELECT(*all_useroptions, _name='opt_id', value=request.vars.opt_id)
HTML:
{{=opt_sel}}
Is it possible to edit the "dropdown" part of the menu? I can edit the "button" of my menu using CSS:
#opt_id {
color: rgb(105,105,105);
padding: 10px 10px;
text-align: center;
border-radius: 5px;
display: inline-block;
font-size: 20px;
margin: 10px 5px;
cursor: pointer;
position: relative;
min-width: 160px;
}
But that only changes the button and not my menu. I would like to make the menu "prettier" by changing its shape, color and height and add some text between the options. Anybody knows how to do that?