Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2006, 11:54 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing font in dropdown box

Can I change the font in a dropdown box partially? For example if 'size 7M - In stock' is one item in my dropdown , I want 'size 7M' to be in one font size and 'In stock' to be in another font size.

 
Old April 12th, 2006, 05:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello! :)

No. OPTION can only contain plain text, so there is no way to mark up part of the text.

--
http://yupapa.com
 
Old April 13th, 2006, 10:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You have some limited control over the font color and background color, but not the size and other properties, AFAIK.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old April 24th, 2006, 05:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Imar, you missed a part of the question. The OP wants to make only some words in an OPTION different.

It's possible to have one option in a different size, if the browser allows. For example Moz does. But there is no way to make a part of an option different than the rest of it, because there is no way to target part of an option. Tags can't go there.

--
http://yupapa.com
 
Old April 24th, 2006, 01:34 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Ooops, sorry I missed that completely.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing only selected text's font in a rich text kwikshot VB How-To 1 November 10th, 2006 05:03 AM
Different Font Style For Elements in Drop Down Box kunal_kishan HTML Code Clinic 1 July 11th, 2006 09:01 AM
Dropdown Box problem migarich ASP.NET 1.0 and 1.1 Basics 3 March 22nd, 2006 10:28 AM
Changing the font size in a statusbar xgbnow C++ Programming 0 February 3rd, 2004 04:05 PM
2 Font Color menu box that show 2 different colors alienscript Excel VBA 0 December 5th, 2003 01:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.