Anyone fix the FireFox border width issues?
Does anyone have a work around or solution to the border witdh issue with FireFox? Whan you create a new Active.HTML.DIV and give it a border of 2, the DIV actually grows in size by 4. This is not a bug with the ActiveControls as the problem ocurrs when creating DIVs via the DOM as well.
You can test this by creating one DIV and give it a width of 100. Then create 2 SPANs inside this first DIV and give them each a width of 50 and a border of 3 solid outset. The 2 SPANs should be side by side and you can see that they extend past the right of the first DIV (give the first DIV a background color to see it's physical size). They extend past quite a bit. But if you run the same code on IE, the SPANs fit nicely inside the outter DIV. The difference is that IE places the border inside the element and FireFox places it outside the element and increases it's size instead of decreasing it.
I realize that this is not an ActiveControl specific issue but it's one we all will face sooner or later. So has anyone come across an elegant way to handle this?
Thanks
You can test this by creating one DIV and give it a width of 100. Then create 2 SPANs inside this first DIV and give them each a width of 50 and a border of 3 solid outset. The 2 SPANs should be side by side and you can see that they extend past the right of the first DIV (give the first DIV a background color to see it's physical size). They extend past quite a bit. But if you run the same code on IE, the SPANs fit nicely inside the outter DIV. The difference is that IE places the border inside the element and FireFox places it outside the element and increases it's size instead of decreasing it.
I realize that this is not an ActiveControl specific issue but it's one we all will face sooner or later. So has anyone come across an elegant way to handle this?
Thanks
Jim Hunter
November 15,