Update style to handle better dynamic alignment