cross browser style functionality