Responsive ui
To create responsive ui Following steps To set view port Html 5 tag This one sets width is device width size use media queries in css3 @media only screen and (max-width: 768px) { /* For mobile phones: */ .header{ width : 200px; } } Mobile orientaion view : Potrait / Landscape @media only screen and (orientation: landscape) { body { background-color: lightblue; } }