Results 1 to 5 of 5

Thread: Transparent BG-color in a text field

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question Transparent BG-color in a text field

    How do I make my bg-color in a text field transparent?
    This is an example of using silver
    Code:
    <INPUT type="text" id=text1 name=overg size=4 style="background-color:silver">

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Do you want to make it transparent, or do you want to make it silver? In either case, I think you will find that you can not affect how the UA renders the form elements. Double check with the W3C.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    scoutt
    Guest
    transparent as in what? you will only get the default browser color. grey or white, unless you change colors. what effect will you get for transparent? if you are trying to get the background of the page to show though the text input you can't.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Hi again, I've found out just using this simple code
    Code:
    style="background-color:transparent"

  5. #5
    scoutt
    Guest
    ahh you learn something new everyday, thanks for sharing that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width