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;
    }
}

Comments

Popular posts from this blog

Proxy setting in java

Using logstash to import csv json files into elasticsearch

Kibana 4 Installation and Run as a service in ubuntu