Hi,
Actually, neither do I know the answer. But I have a work around since I have
the same requirement a little bit like yours.
In html,
<input type="text" class="mytext" ...>
In CSS,
input.mytext {
background-color: #EFEFEF;
}
Hope it helps.
Zhi
----- Original Message -----
From: "Hansjörg Meuschel" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Wednesday, May 24, 2006 2:25 PM
Subject: css problem with default input type="text"
> Hello,
> how do I define a default background color for text input elements
> only(!) in css?
>
> Defining something like
> input {
> background-color: #EFEFEF;
> }
> makes all buttons look ugly so I'm searching for a way to define this
> for text type inputs only...
>
> any ideas?
> greets hans