Click here to Skip to main content
16,005,222 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: CSS trouble in MSIE 5.0 Pin
7-Nov-01 12:14
suss7-Nov-01 12:14 
GeneralRe: CSS trouble in MSIE 5.0 Pin
8-Nov-01 2:20
suss8-Nov-01 2:20 
GeneralVisual Interdev and root Pin
6-Nov-01 19:22
suss6-Nov-01 19:22 
GeneralRe: Visual Interdev and root Pin
Danny Quinn8-Dec-01 5:29
Danny Quinn8-Dec-01 5:29 
GeneralNetscape, IE and the Size of Form Input Boxes Workaround Pin
6-Nov-01 8:08
suss6-Nov-01 8:08 
GeneralRe: Netscape, IE and the Size of Form Input Boxes Workaround Pin
Jon Sagara6-Nov-01 9:25
Jon Sagara6-Nov-01 9:25 
GeneralRe: Netscape, IE and the Size of Form Input Boxes Workaround Pin
Chris Maunder6-Nov-01 19:40
cofounderChris Maunder6-Nov-01 19:40 
GeneralRe: Netscape, IE and the Size of Form Input Boxes Workaround Pin
Jason Jystad8-Nov-01 16:35
Jason Jystad8-Nov-01 16:35 
Actually Chris, the answer to that is both yes and no. Smile | :)

There is a perfectly reasonable explanation why it works the way it does, but it is true that IE's way of accomodating it works better than NS's.

What happens is that a fixed width font has all of it's letters built on a "tile" of space that is exactly the same size for every letter. This makes calculating the width of the form element easy. It also makes them not look as nice, because the kerning and leading are all messed up.

Variable width fonts build each letter on a "tile" that incorporates just enough white space to make the letter look it's best, (providing it was well designed). Thus the font looks much better in most situations. This does mean that every letter is a different width though, making calculating the width of a form element difficult.

What NutScrape does, I believe, is take the largest letter in the base font and make the field long enough to accomodate the maximum possible length of the string. Simple, brute force, pessimistic, looks like sh*t.

What IE does, as far as I can tell, is to find the average width of a letter in the base font and calculate the display length of the field using that value. More elegant, looks better, but fields will sometimes scroll even if you set both the size and the maxlength values to the same number.

Try it sometime, make a form field with its size and maxlength the same value using a variable width font. Open the page up in IE, then hold down the "i" key until you run out of space. Delete all the i's and repeat using the "w" key. Now try it in NS. See what I mean?

Sorry if you knew all that, but I don't get to show off all that often and all you darn MFC programmers make me feel like a novice even though I have been at this for more than a decade. Poke tongue | ;-P

Jason Jystad
Cito Technologies
www.citotech.net

Sonork ID 100.9918

>-------------------------------------------------<
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction that doesn't work.
>-------------------------------------------------<
GeneralRe: Netscape, IE and the Size of Form Input Boxes Workaround Pin
Chris Maunder14-Nov-01 23:47
cofounderChris Maunder14-Nov-01 23:47 
GeneralRe: Netscape, IE and the Size of Form Input Boxes Workaround Pin
Jason Jystad8-Nov-01 16:58
Jason Jystad8-Nov-01 16:58 
GeneralSiteServer Pin
5-Nov-01 11:58
suss5-Nov-01 11:58 
QuestionHow can I understand what part of text has been selected? Pin
4-Nov-01 14:00
suss4-Nov-01 14:00 
AnswerRe: How can I understand what part of text has been selected? Pin
Chris Maunder6-Nov-01 19:41
cofounderChris Maunder6-Nov-01 19:41 
GeneralRe: How can I understand what part of text has been selected? Pin
7-Nov-01 18:05
suss7-Nov-01 18:05 
GeneralShopping carts Pin
Not Active4-Nov-01 11:21
mentorNot Active4-Nov-01 11:21 
GeneralRe: Shopping carts Pin
Jason Jystad5-Nov-01 11:20
Jason Jystad5-Nov-01 11:20 
GeneralRe: Shopping carts Pin
Not Active5-Nov-01 15:56
mentorNot Active5-Nov-01 15:56 
GeneralRe: Shopping carts Pin
Jason Jystad6-Nov-01 6:58
Jason Jystad6-Nov-01 6:58 
QuestionNeed graphics for your project? Pin
30-Oct-01 2:34
suss30-Oct-01 2:34 
AnswerRe: Need graphics for your project? Pin
Jason Jystad30-Oct-01 10:42
Jason Jystad30-Oct-01 10:42 
GeneralExternal Javascript File with image addresses Pin
29-Oct-01 16:21
suss29-Oct-01 16:21 
GeneralRe: External Javascript File with image addresses Pin
Jason Jystad30-Oct-01 11:06
Jason Jystad30-Oct-01 11:06 
GeneralRe: External Javascript File with image addresses Pin
Jason Jystad1-Nov-01 19:06
Jason Jystad1-Nov-01 19:06 
GeneralRe: External Javascript File with image addresses Pin
(Steven Hicks)n+18-Nov-01 5:08
(Steven Hicks)n+18-Nov-01 5:08 
GeneralRe: External Javascript File with image addresses Pin
19-Nov-01 12:16
suss19-Nov-01 12:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.