Check out example codes for "ancho maximo css". It will help you in understanding the concepts better.

Code Example 1

.contenedor{
width:90%;
max-width: 1000px;
border:10px solid #000;
}

Learn ReactJs, React Native from akashmittal.com