...

View Full Version : textfield size="1" appears 2



tvbas
02-17-2005, 04:40 AM
if I want it appears 1,how to do?

hemebond
02-17-2005, 05:36 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>52583</title>
<style type="text/css">
input
{
font-family:monospace;
}
</style>
</head>
<body>
<input type="text" size="1" maxlength="1">
</body>
</html>

tvbas
02-18-2005, 01:12 AM
I want textfield length appears 1.for example:1 1 --> 1

tvbas
02-21-2005, 01:32 AM
I mean the length is too long for me,I think there are some solutions. :confused:

rmedek
02-21-2005, 01:35 AM
I don't get it. Hemebond's solution works fine for me.
Do you want it to be one letter long, where there is only room to type one letter, or do you want to be able to type whatever you want, and only display one letter?

tvbas
02-21-2005, 02:52 AM
I want it to be one letter long, where there is only room to type one letter.

hemebond
02-21-2005, 04:11 AM
That's what mine does.

tvbas
02-21-2005, 04:19 AM
but the length is two letters long :confused:

rmedek
02-21-2005, 04:27 AM
That's what mine does.
ditto.

Post a link to your page, maybe you're using code that is interfering...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum