Jump to content


Pick font type in drop down list

  • Please log in to reply
1 reply to this topic

#1 seaten

  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 23 March 2006 - 07:12 PM

I want the user to pick a font type, at the moment I have it in check boxes but I prefer to have it in a drop down list.

But the key is to have each font option displayed in their own style. Any Ideas ?

here is my current code:
<b>Choose a Font Style for your Text:</b>
<font face= arial>Arial</font>&nbsp;
<input name="fontType" type="checkbox" id="sel_templateA" value="arial">

<font face="Bookman Old Style">Bookman Old Style&nbsp;</font>
<input name="fontType" type="checkbox" id="sel_templateA" value="Bookman Old Style">

<font face="Comic Sans MS">Comic Sans&nbsp;</font>
<input name="fontType" type="checkbox" id="sel_templateA" value="Comic Sans MS">

<font face="Courier">Courier&nbsp;</font>
<input name="fontType" type="checkbox" id="sel_templateA" value="Courier">

#2 redbullmarky

  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 23 March 2006 - 07:30 PM

i think i understand what you're after, but two things spring to mind:

a) this belongs in the HTML/CSS forum, as there's no sign of, or no apparent need for, any PHP
b) i'm not sure how different browsers fare with this one, but i don't actually think it's possible to do what youre after (ie, display each list box option in their own font). alternatives? have a 'preview' next to the list box, or stick with your first method.
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users