From: Nuno F. <nun...@wi...> - 2000-12-04 12:20:46
|
Hi Bill, Just a quick note about your bug report: >Suggestion: >Use a style instead of font tags: Remember that in Netscape 4.x browsers, the style font-size is always 1px smaller than the equivalent IE style font-size. You have to put in a special condition for NS4(not sure about NS6) where you increment by 1px the font-size value, so that the font-sizes match exactly(to the pixel!) on screen. >The div is needed to make the text-align work, span doesn't cut it. Perhaps >the table should be dispensed with in favor of doing the whole thing as a >layer with clipping. (unless there is a problem with using a div in which case >you have to use a table... which may have been the original reason) I agree that sounds more reasonable, but I don't know if you noticed, but if you have more than, say, 30 layers on screen, in IE5+ it takes a loooonnnggg time for the browser to initialize all that DynAPI code. For instance, If you used the old pull-down menu widget with 50 items, you got 1 Layer for each item text, 1 Layer for the event trigger of each item, and if I remember correctly, 1 layer for the background of each item, that comes to 150 layers, and man, IE takes an eternity to initalize all that stuff. Curiously Netscape is way faster, and the speed of initializing 150 layers is the same as initializing 10 or 250... go figure... Anyway, sometimes just by using Tables instead of a lot of layers can speed up things a bit. That's what I did with the pull-down menu widget, I used tables instead of layers, let each item be a <tr><td>caption</td></tr> line, and used normal <a href> events for triggers, instead of Layer event listeners. best, NunoF |