0

how to center option tag using CSS ?

any one help

18th Apr 2022, 6:46 PM
Danish khan
Danish khan - avatar
6 Answers
+ 2
<style> select { width: 100px; color: red; text-align: center; } </style> Good Luck
18th Apr 2022, 7:03 PM
SoloProg
SoloProg - avatar
+ 1
thanks
18th Apr 2022, 7:05 PM
Danish khan
Danish khan - avatar
+ 1
20th Apr 2022, 7:39 PM
SoloProg
SoloProg - avatar
0
what is select in above code
18th Apr 2022, 8:38 PM
Danish khan
Danish khan - avatar
0
Select tag <select name="cars" id="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select>
18th Apr 2022, 10:15 PM
SoloProg
SoloProg - avatar
0
are mere bhai ese option ko page ke center me Lana hai
20th Apr 2022, 7:02 PM
Danish khan
Danish khan - avatar