Can anyone explain me how to apply css styles to form_dropdown function in codeigniter ? I would like the form to look like
<select name="dropdown" style="width: 240px; font-size: 13px">
....
</select
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.
Aside from the fact it’d be best to define the styles via an external stylesheet rather than inline, you can do it as follows:
You could just as easily add a class to the
<select>and then add the styles in your stylesheet:In either case, if you don’t have a value for
$selected, set it toarray()Although you could get away setting it to
nullor''for convenience.