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
https://forums.phpfreaks.com/topic/37893-input-customization/
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
https://forums.phpfreaks.com/topic/37893-input-customization/#findComment-181421
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.