Check out example codes for "css how to style id". It will help you in understanding the concepts better.

Code Example 1

/*put a # infront of the id*/
/*<section id="example"></section>*/
#example{
	margin: auto;
}

Learn ReactJs, React Native from akashmittal.com