[thelist] ReadOnly TextBox BackColor ??
VOLKAN ÖZÇELİK
volkan.ozcelik at gmail.com
Fri Aug 12 20:44:13 CDT 2005
The below works for me;
HTH,
Volkan.
<style type="text/css" media="all">
input.readonly {
background:#aaccff;
}
</style>
<input type="text" class="readonly" readonly="readonly" value="hi there" />
On 8/13/05, Anthony <apwebdesign at yahoo.com> wrote:
> Haven't tested it yet, but try this in your css:
>
> input { background-color: red; }
>
>
>
> --- Casey <aspnet at thecrookstons.com> wrote:
>
> > In ASP.NET, when a textbox is set to
> > readonly="true", it gives the box an
> > ugly grey background. Is it possible to change this
> > color?
> >
> > textBox.BackColor = System.Drawing.Color.White
> >
> > That doesn't seem to do the trick. I've tried CSS
> > as well. From what I've
> > found in Google, it might not be possible to play
> > with this color.... am I
> > correct?
> >
> > TIA
> >
> > --
> >
> > * * Please support the community that supports you.
> > * *
> > http://evolt.org/help_support_evolt/
> >
> > For unsubscribe and other options, including the Tip
> > Harvester
> > and archives of thelist go to:
> > http://lists.evolt.org
> > Workers of the Web, evolt !
> >
>
>
> Anthony
> ph: (408) 656-2473
> blog: http://www.chovy.com
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list