Hi the problem is defining the font only to the text displayed in the dropdown. In detail when we click on the drop down it shows all the available options. these options should have normal or default font size but when i select an option that gets displayed in the dropdown. so this displayed text should have a different font size. Is this possible. if so what is the css for this?
yaragalla_mural
0
Newbie Poster
Recommended Answers
Jump to Postwell, as far as I know, you can easily specify font for some element using CSS
you only have to narrow down the selection of the element....
like:ul, li { font-size:14px; font-family:Arial, Helvetica, sans-serif; line-height:21px; text-align:left; }
or if it belongs to some specific DIV.. …
Jump to PostAs far as I know, you cannot style the options elements listed within the
<select>
element except for thebackground-color
andcolor
properties. All other styling is applied to the<select>
element.
All 6 Replies
yaragalla_mural
0
Newbie Poster
azapovjednik
14
Newbie Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
yaragalla_mural
0
Newbie Poster
azapovjednik
14
Newbie Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.