Click to See Complete Forum and Search --> : Fields not displaying properly


manishrathi
07-21-2009, 12:35 PM
|
|
|
<p>
<label for="userLB"><%=username%></label><br>
<input type="text" id="userLB" name="USER" maxlength="40" class="inputAlreadyLogin"
onkeydown="if (event.keyCode == 13) submitLoginBox(document.forms.loginForm)"/>
</p>

<label for="pwdLB"><%=password%></label><br>
<input type="password" id="pwdLB" name="PASSWORD" maxlength="40" class="inputAlreadyLogin"
onkeydown="if (event.keyCode == 13) submitLoginBox(document.forms.loginForm)"/>

I am also having issues with this code. In this code, username and its input box appears fine ie username appears above the input box as coded. But in password, its coded that password label will appear above the passwoed input box. But password label appears below the password input box. Can you pls correct me with this ?

crazyboy9807
07-21-2009, 01:46 PM
That's a good one! My observation, if the input for username is displaying correctly, then try putting the password label and input inside of <p> tags as well...

manishrathi
07-21-2009, 03:49 PM
I already tried that. In that case password label and input box doesnt diaply in the area at all

crazyboy9807
07-21-2009, 04:04 PM
The only other thing I could suggest would be in your CSS. Did you use the class selector "inputAlreadyLogin" to position your inputs?

manishrathi
07-22-2009, 09:19 AM
I dont understand your question.
i have alredy provided the code in first post. I did not use "inputAlreadyLogin" anywhere else. what do you mean by "Did you use the class selector "inputAlreadyLogin" to position your inputs?"
I dont know how to position inputs. Can you pls ask or explain in more details ?

manishrathi
07-22-2009, 10:57 AM
One more thing

If I remove following code, then password block appears fine <p>
<label for="userLB"><%=username%></label><br>
<input type="text" id="userLB" name="USER" maxlength="40" class="inputAlreadyLogin"
onkeydown="if (event.keyCode == 13) submitLoginBox(document.forms.loginForm)"/>
</p>

So whats the issue inn here ?