position divs correctly

added the divs to position left, right, top, and bottom of input