had to use the parent width() in firefox