HighDots Forums  

Different Input Lengths - Why?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Different Input Lengths - Why? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Call Me Tom
 
Posts: n/a

Default Different Input Lengths - Why? - 04-27-2009 , 02:55 AM






If you look at http://www.corporateairamerica.com/testlength.html
you will see a simple table. In IE7 the input lengths are different.
In Firefox they are the same.

I discovered this while trying to modify the main page at
http://www.corporateairamerica.com

If you look at this page in IE7 or Firefox both input lengths are the
same. To my eye this page is using the same code in the login table as
above.

Any suggestions?

Tom

Reply With Quote
  #2  
Old   
Swifty
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 09:09 AM






Call Me Tom wrote:
Quote:
To be honest, I have no idea what this means.
If you're open to a WAG, the first field may contain all M's so
sufficient space is created, even though you can type only 6 of them.

The second field only needs space for 15 *'s (although one may type
more). This needs less space.

It is bizarre, though. I'm not trying to justify it.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Reply With Quote
  #3  
Old   
Scott Bryce
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 10:05 AM



Swifty wrote:
Quote:
Call Me Tom wrote:
To be honest, I have no idea what this means.

If you're open to a WAG, the first field may contain all M's so
sufficient space is created, even though you can type only 6 of them.



The second field only needs space for 15 *'s (although one may type
more). This needs less space.

It may be a WAG, but changing the type of the second input text box to
'text' solves the problem.

If the OP really needs (wants) both boxes to be the same width, he
should style them both to a specific width.

While he is at it, he can change the doctype to HTML 4.01 strict and
lose the slashes at the end of the input tags.


Reply With Quote
  #4  
Old   
Johannes Hafner
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 11:47 AM



Scott Bryce schrieb:
Quote:
While he is at it, he can change the doctype to HTML 4.01 strict and
lose the slashes at the end of the input tags.
Why's that? IMHO it would be better to change it to XHTML 1.1 (and make
the site valid XHTML 1.1) and keep those slashes...

Johannes


Reply With Quote
  #5  
Old   
Swifty
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 01:49 PM



Gregor Kofler wrote:
Quote:
Why's that? IMHO it would be better to change it to XHTML 1.1 (and make
the site valid XHTML 1.1) and keep those slashes...

Why would one want to do that? (Change to XHTML 1.1.)
Some people just like doing simple tasks the hard way. This is how the
game of golf was invented, and look how many people do that.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Reply With Quote
  #6  
Old   
Sherm Pendley
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 02:37 PM



Johannes Hafner <johannes.hafner (AT) gmx (DOT) de> writes:

Quote:
Scott Bryce schrieb:

While he is at it, he can change the doctype to HTML 4.01 strict and
lose the slashes at the end of the input tags.

Why's that?
Because XHTML is pointless. IE parses it as HTML, which means that you
can't actually use anything that would actually make XHTML a better choice
in any meaningful way.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net


Reply With Quote
  #7  
Old   
BootNic
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 03:31 PM



On Mon, 27 Apr 2009 07:55:58 GMT
Call Me Tom <Noone (AT) nowhere (DOT) net> wrote in:
<i6pav41bn418769rbdpeb7753ddnnoi0nt (AT) 4ax (DOT) com>

Quote:
If you look at http://www.corporateairamerica.com/testlength.html
you will see a simple table. In IE7 the input lengths are
different. In Firefox they are the same.

I discovered this while trying to modify the main page at
http://www.corporateairamerica.com

If you look at this page in IE7 or Firefox both input lengths
are the same. To my eye this page is using the same code in the
login table as above.

Any suggestions?
IE uses different font-family for input type=text and input type
password. As it appears IE also uses different font-family for
input type=text for utf-8 then it does for iso-8859-1.

A simple fix would be to set the font-family for input.

<style type="text/css">

input {
font-family: sans-serif;
}

</style>

--
BootNic Mon Apr 27, 2009 04:31 pm
"This seems like a case where we need to shoot the messenger."
*Charlie Kaufman on Cypherpunks list*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (GNU/Linux)

iEYEARECAAYFAkn2FiUACgkQylMUzZO6jeLw6QCdEQBQZr/MXaVHIXuohE4MxnKr
u/cAn0P1yquPk7awYlFmAArHz3U9JfQY
=vkqh
-----END PGP SIGNATURE-----



Reply With Quote
  #8  
Old   
Johannes Hafner
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 06:48 PM



Gregor Kofler schrieb:
Quote:
Johannes Hafner meinte:
Scott Bryce schrieb:
While he is at it, he can change the doctype to HTML 4.01 strict and
lose the slashes at the end of the input tags.
Why's that? IMHO it would be better to change it to XHTML 1.1 (and make
the site valid XHTML 1.1) and keep those slashes...

Why would one want to do that? (Change to XHTML 1.1.)
Because someone would like to use valid XML instead of some language
based on the outdated SGML. Ca you, for example, mix HTML with other
SGM-languages like you can mix XHTML with other XM-languages like
MathML, XForms, etc.?

Johannes


Reply With Quote
  #9  
Old   
Johannes Hafner
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 06:50 PM



Sherm Pendley schrieb:
Quote:
Johannes Hafner <johannes.hafner (AT) gmx (DOT) de> writes:

Scott Bryce schrieb:
While he is at it, he can change the doctype to HTML 4.01 strict and
lose the slashes at the end of the input tags.
Why's that?

Because XHTML is pointless. IE parses it as HTML, which means that you
can't actually use anything that would actually make XHTML a better choice
in any meaningful way.
But it is not worse either. And how knows, what future versions of IE
will (hopefully) do with it?

Johannes


Reply With Quote
  #10  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Different Input Lengths - Why? - 04-27-2009 , 07:09 PM



Johannes Hafner wrote:
Quote:
Sherm Pendley schrieb:
Johannes Hafner <johannes.hafner (AT) gmx (DOT) de> writes:

Scott Bryce schrieb:
While he is at it, he can change the doctype to HTML 4.01 strict and
lose the slashes at the end of the input tags.
Why's that?

Because XHTML is pointless. IE parses it as HTML, which means that you
can't actually use anything that would actually make XHTML a better
choice
in any meaningful way.

But it is not worse either.
Well actually it is, been discussed ad nauseam. IE only parses it as bad
html and can mess up constant cross browser styling.

Quote:
And how knows, what future versions of IE
will (hopefully) do with it?

Now there is an optimist!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.