Jump to content

Pick font type in drop down list


seaten

Recommended Posts

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">
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.