Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ability to Bold a portion of an item in a list box.

Status
Not open for further replies.

rizza

Programmer
Jul 16, 2002
66
US
Is it possible to bold a portion of item in a list box.

eg.

<option value=“You’ve Earned It, Don’t Lose it”><b>You’ve Earned It, Don’t Lose it - </b><i>Mistakes you can’t afford to make when you retire</i>, BY: Suze Orman</option>

This didnt work so i wanted to make sure that it was even possible.

Thanks
RiZZa
 
I don't think its possible...but try using CSS maybe, just maybe, it might work... I have not failed; I merely found 100,000 different ways of not succeding...
 
No luck, but thanks anyway. I guess i'll have to use sort of table to display my data.

Thanks
 
It is not possible.

Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
there is one way to make a option stand out of the rest.
<html>
<head>
<style>
.standout{
color:#FF0000;
}
</style>
</head>
<body>
<form>
<select class=&quot;Menu&quot; size=&quot;1&quot;>
<option>Item One</option>
<option>Item One</option>
<option class=&quot;standout&quot;>Item One</option>
<option>Item One</option>
</select>
</form>
</body>
</html>

Hope that helps,
Ted
admin@onpntwebdesigns.com
 
Can you center a specific item in a list box???

I have two seperate list boxex for my data now and one is so much wider than the other one.

Is there anyway to specify the width of list box? Or do i have to make some kind of spacer list item?

Rizza
 
add
style=&quot;width:100px;&quot; to the select tag Was it something I said?
admin@onpntwebdesigns.com
 
to center:

style=&quot;text-align:center;&quot;

Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top