SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Quick question <option> tags

    Does anyone know if you can apply font styles to specific option tags. Not select lists, but each individial option so that you could have multiple fonts on one select list.

    I just tried it and it doesn't seem to be working, but before I give up I just thought I'd check.
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The example below works in NS6.2, but IE6 ignores the font-family. Don't know why

    Code:
    <html>
    	<head>
    		<style>
    			.arial{font-family: arial;color:#ff0000;}
    			.courier{font-family: courier;color:#00ff00;}
    			.georgia{font-family: georgia;color:#0000ff;}
    		</style>
    	</head>
    	<body>
    		<select>
    			<option class="arial">Arial</option>
    			<option class="courier">Courier</option>
    			<option class="georgia">Georgia</option>
    		</select>
    	</body>
    
    </html>

  3. #3
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup thats exactly what I tried... oh well, chalk one up for Netscape.
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums


Bookmarks

Posting Permissions

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