Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Input size in firefox and MSIE

Reply
Thread Tools

Input size in firefox and MSIE

 
 
effendi@epitome.com.sg
Guest
Posts: n/a
 
      10-08-2006
I am trying to size an input control for a form. I sized it to
"size=100" . It look fine in IE but its seems longer in Firefox. I
tried to change it to size=100%. but it doesnt change.

The input control is placed in the table cell. How do I make it "equal"
in the different browsers?

Thanks

 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      10-08-2006
Scripsit :

> I am trying to size an input control for a form. I sized it to
> "size=100" .


A hundred characters is quite a lot.

> It look fine in IE


I don't believe you. Show us the URL.

> but its seems longer in Firefox.


That's not surprising. <input size="100"> means that the width is 100 times
the "average width" of character - a sloppy concept, with many plausible and
even more implausible interpretations.

> I tried to change it to size=100%. but it doesnt change.


<input size="100%"> violates HTML specifications, so all bets are off. (It
is not invalid, though, unless you use a customized DTD.)

> The input control is placed in the table cell.


Why, oh why?

> How do I make it
> "equal" in the different browsers?


Why should it be "equal"? Do you expect people to compare its appearance on
different browsers and sue you if they detect a difference?

You _might_ want to use <input style="width:100%"> or something similar.
This is at least a possible solution. Maybe you have a question for it.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
effendi@epitome.com.sg
Guest
Posts: n/a
 
      10-08-2006

Jukka K. Korpela wrote:
> Scripsit :
>
> > I am trying to size an input control for a form. I sized it to
> > "size=100" .

>
> A hundred characters is quite a lot.
>
> > It look fine in IE

>
> I don't believe you. Show us the URL.
>
> > but its seems longer in Firefox.

>
> That's not surprising. <input size="100"> means that the width is 100 times
> the "average width" of character - a sloppy concept, with many plausible and
> even more implausible interpretations.
>
> > I tried to change it to size=100%. but it doesnt change.

>
> <input size="100%"> violates HTML specifications, so all bets are off. (It
> is not invalid, though, unless you use a customized DTD.)
>
> > The input control is placed in the table cell.

>
> Why, oh why?
>
> > How do I make it
> > "equal" in the different browsers?

>
> Why should it be "equal"? Do you expect people to compare its appearance on
> different browsers and sue you if they detect a difference?
>
> You _might_ want to use <input style="width:100%"> or something similar.
> This is at least a possible solution. Maybe you have a question for it.
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/


Thanks, maybe i did get the width wrong. It was meant for width not
inout size.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interaction between MSIE and Firefox fred.what's.his.name@? Firefox 1 09-22-2009 02:57 AM
Interaction between MSIE and Firefox fred.what's.his.name@? HTML 6 09-20-2009 12:34 AM
Http session management in MSIE and Mozilla Firefox yborov@hotmail.com Java 0 07-20-2006 07:21 AM
MSIE: Variable Image Size Stephan Heckmueller HTML 8 11-22-2004 02:40 PM
Firefox right MSIE wrong? The Bicycling Guitarist HTML 4 11-16-2004 08:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57