Applying the styles to the li elements