Results 1 to 4 of 4

Thread: Dropdownlist with font styles

  1. #1
    Join Date
    Aug 2009

    Dropdownlist with font styles

    I have a dropdown list for font selection and want each font in the list to display in it's style. I see it working in FF but not in IE, is there something about IE that it won't work there?
    Here is the code im using:

    HTML Code:
    <select id="Select Font" style="width: 180px; height: 23px">
                <option value="0">Select Font</option>
                <option value="Algerian" style="font-family:Algerian; font-size:xx-large;">TEST</option>
                <option value="Garamond" style="font-family:Garamond; font-size:xx-large;">TEST</option>
                <option value="Latha" style="font-family:Latha; font-size:xx-large;">TEST</option>
                <option value="Constantia" style="font-family:Constantia; font-size:xx-large;">TEST</option>

  2. #2
    Join Date
    Jun 2005
    United Kingdom
    Hmm. Works in FF, not in IE or Chrome. Don't know on this one. As it works in FF, the fonts must be in our computers.

  3. #3
    Join Date
    Nov 2002
    Baltimore, Maryland
    IE is like that. If there is something in the HTML or CSS specification that they don't think is important they will not implement it.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Jun 2008
    Just copy my code from this page:

    THIS PAGE IS NOT DONE, so please, no flames.

    I started screwing around with the GD Library and left it sitting since May half-baked. Maybe this weekend I'll finish the button generator... or not.

    The good news: It has exactly what you seek. Just lift my code. Send a beer. Cold and German if possible.

    Other solutions:

    Use an image.

    If the fonts are not installed on your users' computers, they will not see them.

    You can also upload the fonts and use the GD Library in PHP. This is a cool but bit more complex solution, so it depends upon what you are creating.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center