How to make a horizontal form and adjust the width and height?