Thanks.. That I think will work for what I need!
-----Original Message-----
From: DRE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 3:14 PM
To: CF-Community
Subject: Re: Select Box (text color)?
Randy,
You can use the optgroup tag for modern browsers which gets you part of
what your looking for.
DRE
<style>
optgroup {
color:blue;
font-style:normal;
}
option {
color:black;
}
</style>
<form>What is your preferred vacation spot?<br> <SELECT NAME="Vacation
Spots"> <OPTGROUP LABEL="USA Beaches"> <OPTION
LABEL="Florida">Florida</OPTION> <OPTION LABEL="Hawaii">Hawaii</OPTION>
<OPTION LABEL="Jersey">Jersey Shore</OPTION> </optgroup>
<OPTGROUP LABEL="European Cities">
<OPTION LABEL="Paris">Paris</OPTION>
<OPTION LABEL="London">London</OPTION>
<OPTION LABEL="Florence">Florence</OPTION>
<OPTION LABEL="Amsterdam">Amsterdam</OPTION>
</OPTGROUP>
<OPTGROUP LABEL="Adventure Travel">
<OPTION LABEL="Amazon">Amazon Jungle</OPTION> <OPTION
LABEL="Kenya">Kenyan Safari</OPTION> <OPTION LABEL="Outback">Australian
Outback</OPTION> <OPTION LABEL="Galapagos">Galapagos Cruise</OPTION>
</OPTGROUP>
<OPTION>Other</OPTION>
</SELECT> </form>
On 1/25/06, Tony <[EMAIL PROTECTED]> wrote:
>
> as select boxes REALLY arent web things and are just windows things
> moved into the browser window, they are kinda stubborn.
>
> tw
>
> On 1/25/06, Sandra Clark <[EMAIL PROTECTED]> wrote:
> > You could always try to use a <dl> list and style the css so that it
> brings
> > the <dd> up to and to the right of the <dt>. Here's some code I
> > used to create a memo like form, you can play around that and also
> > add different foreground colors to the <dt> and <dd>
> >
> > dl{
> > margin-left: 5em;
> > }
> > dt{
> > font-weight: bold;
> > }
> > dd{
> > margin-top: -1.2em;
> > margin-bottom: 1.5em;
> > margin-left: 10em;
> > width: 50%;
> > }
> >
> > -----Original Message-----
> > From: Adkins, Randy [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 25, 2006 1:05 PM
> > To: CF-Community
> > Subject: RE: Select Box (text color)?
> >
> > Yeah I really did not think so, but was trying anyway to see If I
> > was missing something.
> >
> > I think I tried this before and did not work.
> >
> > Besides placing the information in a GRID to get it to Be tabulated
> > for viewing, any other way you know to align
> > 2 display items accordingly?
> >
> > Such as:
> >
> > Instead of it displaying:
> > N100 - WV Test Job
> > N5000 - JX Job Site
> >
> > It can read:
> > N100 - WV Test Job
> > N5000 - JX Job Site
> >
> >
> > -----Original Message-----
> > From: Sandra Clark [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 25, 2006 1:02 PM
> > To: CF-Community
> > Subject: RE: Select Box (text color)?
> >
> > Nope,
> >
> > THe option tag does not allow other tags to be nested within it.
> > Therefore, you can't selectively color some words and not others
> > within
> it.
> >
> > Sandy Clark
> >
> > -----Original Message-----
> > From: Adkins, Randy [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 25, 2006 12:52 PM
> > To: CF-Community
> > Subject: Select Box (text color)?
> >
> > In a Select box I am displaying 2 elements:
> > JOBCODE - JOBNAME
> >
> > I want to be able to set the color for the JOBCODE to say #0066CC
> > and
> the
> > JOBNAME to #000000
> >
> > I tried the following but does not work:
> > <OPTION VALUE="#ID#"><SPAN STYLE="color:##000000">#JOBCODE#</SPAN> -
> > #JOBNAME#</OPTION>
> >
> > If I set it on the OPTION tag as a STYLE, it will color the enter
> contents
> > of the Display value.
> >
> > Is this even possible?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:194395
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54