Well, the length is determined by the CSS handler for each browser with that code segment. Because of the "position: absolute" property, it acts independently from the CSS of the items containing it. This might be why Firefox makes it go off the screen... But the "width: auto" is supposed to automatically size the div to the size of its contents.
You could try switching it to "position: relative" instead, but I think that would invalidate the "width: auto" property. I've never been a fan of CSS because of how it is handled differently between different browsers.
|