Check out example codes for "css distance between text and input box". It will help you in understanding the concepts better.

Code Example 1

label {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  text-align: right;
  width: 400px;
  line-height: 26px;
  margin-bottom: 10px;

input {
  height: 20px;
  flex: 0 0 200px;
  margin-left: 10px;

Learn ReactJs, React Native from