How to change direction in style