general input and element positioning