Jump to content

input customization


almightyegg

Recommended Posts

i have a form:

<form method="POST" action="welcome.php">

<b>Name:</b><br />

<input type="text" id="1" name="name"  /><br />

<b>Email:</b><br />

<input type="text" id="1" name="email" /><br />

<input type="submit" value="Login">

</form>

 

and css to deal with it:

#1 {

border:solid 0 #fff;

margin:3px;

height:20px;

width:200px;

background: transparent

url("images/textfield_bg.gif") no-repeat; }

INPUT {

border:solid 0 #fff;

margin:3px;

height:20px;

width:80px;

background: transparent

url("images/textfield_bg2.gif") no-repeat; }

 

In IE it works fine but in FF it shows images/textfield_bg2.gif for all inputs...even though i said 'id="1"' in the text inputs! How do I solve this?

 

If you want to know more about what's wrong click here

Link to comment
Share on other sites

right I've done that but it still doesn't work in firefox

html

<form method="POST" action="welcome.php">
<b>Name:</b><br />
<input class="1" type="text" name="name"  /><br />
<b>Email:</b><br />
<input class="1" type="text" name="email" /><br />
<input class="2" type="submit" value="Login">
</form>

 

css

.1 {
border:solid 0px #fff;
margin:3px;
height:20px;
width:200px;
background: transparent url("images/textfield_bg.gif") no-repeat; }
.2 {
border:solid 0px #fff;
margin:3px;
height:20px;
width:80px;
background: transparent url("images/textfield_bg2.gif") no-repeat; }

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.