Check out example codes for "css horizontal gradient background color". It will help you in understanding the concepts better.

Code Example 1

.element {
    background: linear-gradient(90deg, pink 50%, cyan 50%);
}

Code Example 2

.foo {
	background-image: linear-gradient(red, blue);
}

Code Example 3

.element {
    background: linear-gradient(pink 50%, cyan 50%);
}

Learn ReactJs, React Native from akashmittal.com