CSS Selectors for Input elements

Soldato
Joined
18 Oct 2002
Posts
16,034
Location
The land of milk & beans
A quickie:

<input type="text" name="txtOne" value="1234"><br />
<input type="file" name="txtFile" value="">

with the above, how can i have 2 CSS selectors to identify the above input elements without using classes or id's?
 
do you need the quotes? I don't normally use them.

And they never seem to work too well in IE7.
 
Although i haven't used them myself, i'm under the impression you don't need the quotes as its the same with background pictures, unless there is a space in the path.

Eg:
Code:
background:url(images/pic.png);
and
Code:
background:url('images dir/pic.png');
 
Back
Top Bottom