-1

How to add css styles to the drop down list on this form? I searched a lot over the internet but no useful results found. Thanks

    echo  "<form method='post' action='advisor.php?view=$view'>
    Select Student: <select name='data'>";
    while($row = mysqli_fetch_array($query))
        {

                    echo "<option value=\"".$row[3] . "\">".$row[0] ." " . $row[1] . " (".$row[3].")".
                    "</option>";
        }
      echo    " </select>
        <input type='submit' name='submit' class='buttonM' value='Show Questions' />
        </form>";
     }
sabsab
  • 1,073
  • 3
  • 16
  • 30
  • What do you mean by style? What are you trying to make it look like? – Fiona - myaccessible.website Jul 17 '13 at 13:29
  • "Style" is a little ambiguous; text color, background color, border, or make it look something like [uniform](http://uniformjs.com/)? – Brad Christie Jul 17 '13 at 13:29
  • What have you tried? Are you looking for a pure-CSS or JS approach? http://stackoverflow.com/questions/1895476/how-to-style-a-select-dropdown-with-css-only-without-javascript – jterry Jul 17 '13 at 13:30
  • I edited the question, I mean how to add css style to the drop down list. – sabsab Jul 17 '13 at 13:31
  • Possible duplicate of: "[How to style a – insertusernamehere Jul 17 '13 at 13:34
  • 2
    But ` – insertusernamehere Jul 17 '13 at 13:39
  • @insertusernamehere sorry I deleted the comments, I wish if I know the best way to style the drop down list and if I got the idea I will add another effects to the drop down list. – sabsab Jul 17 '13 at 13:43
  • As you see, you can't style a ` dropdown for the languages switcher?](http://stackoverflow.com/a/14926603/1456376).
– insertusernamehere Jul 17 '13 at 18:09