How To Apply Font Family In HTML Tag Of Select Option January 01, 2023 Post a Comment I am applying Font family in tag but it is not working any option guys My code : Solution 1: You have a syntax error in your inline style, the correct syntax is: option { font-family: 'sans-serif' } Copy or with inline styles: <option style="font-family: sans-serif">Font-familly Name</option> Copy 'sans-serif' should be replace for the font you want. Solution 2: This is how my code run Insert fonts in head tag /* BAHAMAS */ @font-face {font-family: 'BAHAMAS'; src: url('../fonts/BAHAMAS0.eot');} @font-face {font-family: 'BAHAMAS'; src: url(//:) format('no404'), url('../fonts/BAHAMAS0.ttf') format('truetype'); font-weight: normal; font-style: normal;} Copy call fonts <option style="font-family:BAHAMAS;">My Font</option> Copy Solution 3: #select-group{ font-family: 'samim'!important;} Copy its cant work in firefox ------But it will work in Chrome!:)Baca JugaWhat Do You Use To Test The Handheld Css On Your Website?Checking Image Size Using Jquery Validation Not WorkingJquery Math Operations For My Datagrid Solution 4: So easy Just see this demo #select1 { font-family: 'sans-serif'; } #select2 { font-family: tahoma; } #select3 { font-family: monospace; }Copy <select id="select1"> <option>OPTION 1</option> <option>OPTION 2</option> <option>OPTION 3</option> </select> <br/> <select id="select2"> <option>OPTION 1</option> <option>OPTION 2</option> <option>OPTION 3</option> </select> <br/> <select id="select3"> <option>OPTION 1</option> <option>OPTION 2</option> <option>OPTION 3</option> </select>Copy Share You may like these postsHow To Manage Ajax Code To Display Image And Video Using Switch Case On HTMLManually Typing VS Setting Value In JSRendering Issues With IE7 In Quirks ModeStrange Rendering Issue In Chrome With Floats In A Div With Margin-top Post a Comment for "How To Apply Font Family In HTML Tag Of Select Option"
Post a Comment for "How To Apply Font Family In HTML Tag Of Select Option"