HTML Code ClinicDo 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
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.
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.