How to apply left to righ and top to bottom