December 19th, 2002, 12:53 PM
CSS: transparant textarea & input text
I'm fairly new in CSS
I need to have transparent TEXTAREAS and transparent INPUT TYPE=TEXT boxes.
What I have now is:
However, this also makes all the other info stuff transparant, even the buttons. This is an exsting HUGE pile of php scripts, so I wanted to do the layout in css, and not going to the burden of searching all buttons and give them a class or a local style color.
Is it possible to distinguish between the different INPUT types in CSS ???
December 19th, 2002, 12:58 PM
Yes, but it probably won't help you much because most browsers don't support it (also most users use IE)
December 19th, 2002, 01:28 PM
But it is good enough, thanx.
It's working in netscape 7 and since it's private anyway we can tell what browser to use
Besides, I just found out that the above transparance isn't working for IE anyway, also not with the textarea.
So thanks a bundle
December 19th, 2002, 02:03 PM
This is not correct,most browsers do support it (Mozilla,Konqueror,Opera etc.),only IE doesn't.
December 19th, 2002, 02:11 PM
December 20th, 2002, 04:26 AM
Does'nt work in IE??
Well, it works in mine anyway....
To go back to the first question. What you should do instead of setting all textareas and inputs to transparent, make a class:
<input type="text" class="transItems" value="Yihaa, did it...">
December 20th, 2002, 05:59 AM
Well If we go back to the fisrt question, I did ask for a solution without using class. I thank you for the explanation, but I will have to go through 1000's of lines of code in about 50+ scripts to alter it then. The 1st solution is (for the moment) the best there is.
Further, It really isn't working in IE (at least not the IE I got with WinXP pro SP1.) I don't know why however. I just dropped it under the tab Gates-Sun debacle
Thanx all of you
December 20th, 2002, 07:16 AM
Oh, sorry.... I missed that.
I use IE 5.5 on Win 2000 and it works fine? Strange if it would make a difference what OS you've got, or if IE is version same as mine or later??
December 20th, 2002, 07:50 AM
ztevie,are you sure that it works?Does it only apply the style to the type of input specified or to all inputs?Because according to
CSS2 test it doesn't work in any version of IE....
December 20th, 2002, 09:41 AM
It works for me. I use it in a stylesheet included on an asp-page with : <link rel="stylesheet" type="text/css" href="../includes/main.css"> I've put it in a class, but I tried to apply it to <INPUT>, and it worked there too?
The browser is the IE 5.5 on Win2000.
December 20th, 2002, 10:31 AM
What I am asking is:does it apply the styles to all INPUT or just the specified ones??
November 18th, 2003, 11:42 PM
mine works on IE perfectly^^. its the newest version in windows xp...(not sure what the exact name is but oh well)
BTW... i've tried your script ztevie and is it possible to use html in the textarea? ill try putting in a vertical scrollbar in it because all the text seems to do is go on and on on the same line and i can't get it to go on a new line....
November 19th, 2003, 08:03 AM
well it works with class in ie,
but ie doen't understand
try this in ie, and moz
<form action="" method="post">
<input type="text" name="bnavn" />
<input type="submit" value="Søk" />
November 19th, 2003, 10:10 AM
im not on a computer with a text editor...
but I always did something like
<input style="filter:alpha(opacity: '10');">
or something like that. Once i get home ill get you the accurate code.