I want to change font on my list box, so when they click it that font will be di

I want to change font on my list box, so when they click it that font will be display.

i am using IE
using PHP

echo’’.$myclans[$i]."…".‘style.font family:“myfont”,.$myclans[$i+1].’

this does not work

I want the whole listbox, when clicked to display the font, how do I do it.

This isn’t a php issue.

use css

<style>
select {
  font-family: myfont;
}
</style>

if you don’t want it affecting every select box, then do
[php]echo “”;

//loop
echo ‘$myclans[$i]’;
$myclan++;
//end loop

echo “”;[/php]

Thanks for replaying, I have a basicprint.css file
.normalv{
font-family: Ver;
font-weight:400;
}

then in phh file I got
echo’ ’ ;

still no go

echo’ ';

the color does change in my list box but not the font

Is ver a valid font? i’ve never heard of it.

Well i used the WEFT to create a font call Ver.eot, then uploaded to server. Same with Cen.eot

font works on pages , but not on the listbox

whatever is in the style attribute will over-ride what’s in the css page. Before trying the code below, make sure you don’t have anything thing that would suprecede it, like attributes in a div or table tag

[code]
@font-face {
font-family: ‘GothamBoldRegular’;
src: url(‘fonts/gotham-bold-webfont.eot’);
src: url(‘fonts/gotham-bold-webfont.eot?#iefix’) format(‘embedded-opentype’),
url(‘fonts/gotham-bold-webfont.woff’) format(‘woff’),
url(‘fonts/gotham-bold-webfont.ttf’) format(‘truetype’),
url(‘fonts/gotham-bold-webfont.svg#GothamBoldRegular’) format(‘svg’);
font-weight: normal;
font-style: normal;

}
[/code] in your css page, just change the font name to match yours.

Thanks I will try that I am traveling today. You have a great day with your love ones…

Sponsor our Newsletter | Privacy Policy | Terms of Service