Combined capillary force and step and flash lithography