optimize navbar for mobile devices; support styling for IE6/7/8