Quando stavo cercando di aggiungere alcuni campi di input con i CSSCome aggiungere css per il tipo di testo di input specifico
Ho un problema
non ho potuto fare più di un css per alcuni campi di input
questo è i campi ho
<input type="text" name="firstName" />
<input type="text" name="lastName" />
ed il CSS è
input
{
background-image:url('images/fieldBG.gif');
background-repeat:repeat-x;
border: 0px solid;
height:25px;
width:235px;
}
Voglio fare il primo campo (firstName) con questo css
input
{
background-image:url('images/fieldBG.gif');
background-repeat:repeat-x;
border: 0px solid;
height:25px;
width:235px;
}
e la seconda (lastName) con questo css
input
{
background-image:url('images/fieldBG2222.gif');
background-repeat:repeat-x;
border: 0px solid;
height:25px;
width:125px;
}
aiuto per favore :-)
[selettori CSS] (http://www.w3.org/TR/CSS2/selector.html) – Musa
possibile duplicato del [Che HTML/CSS vuoi utilizzare per creare un input di testo con uno sfondo? ] (http://stackoverflow.com/questions/526548/what-html-css-would-you-use-to-create-a-text-input-with-a-background) – ghoppe
@Musa - Questo è un po 'più facile da leggere. http: //net.tutsplus.com/tutorial/html-css-techniques/the-30-css-selectors-you-must-memorize/ –