• Container Percentage For Responsiveness of Box Global Change | Min to Max CSS Breakpoints I Use

    <style>
    /* CONTAINER BOXED LAYOUT*/
    /* Ultra wide */
    @media (max-width: 3840px) {
    .c-box {--content-width: 55%;}}
    /* Desktop */
    @media (max-width: 1920px) {
    .c-box {--content-width: 65%;}}
    /* Laptop big */
    @media (max-width: 1600px) {
    .c-box {--content-width: 74%;}}
    /* Laptop small */
    @media (max-width: 1366px) {
    .c-box {--content-width: 77%;}}
    /* Tablet portrait */
    @media (max-width: 1200px) {
    .c-box {--content-width: 80%;}}
    /* Mobile */
    @media (max-width: 767px) {
    .c-box {--content-width: 85%;}}
    </style>

    Using This you can do a global change in any screen size for better optimization of website responsiveness, I just wrote it here for my reference, this is based on Rino's tips, and many thanks to him as I've been using this for quite some time on my project.

    This one below is also working for my 27inches screen monitor.

    @media screen and (min-width: 1280px) {
        /*Your CSS Code here*/
        .our-services-class {
            margin-top:250px;
        }
    }

    Just paste this code before closing the tag of HEAD HTML, or if you're using Elementor PRO, just it in the global page custom CSS

    /* Smartphones (portrait and landscape) ----------- */
    @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
        /* Styles */
        }
       
        /* Smartphones (landscape) ----------- */
        @media only screen and (min-width : 321px) {
        /* Styles */
        }
       
        /* Smartphones (portrait) ----------- */
        @media only screen and (max-width : 320px) {
        /* Styles */
        }
       
        /* iPads (portrait and landscape) ----------- */
        @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
        /* Styles */
        }
       
        /* iPads (landscape) ----------- */
        @media only screen and (min-device-width : 768px) and (max-device-width : 1024px)
        and (orientation : landscape) {
        /* Styles */
        }
       
        /* iPads (portrait) ----------- */
        @media only screen and (min-device-width : 768px) and (max-device-width : 1024px)
        and (orientation : portrait) {
        /* Styles */
        }
        /**********
        iPad 3
        **********/
        @media only screen and (min-device-width : 768px) and (max-device-width : 1024px)
        and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
        /* Styles */
        }
       
        @media only screen and (min-device-width : 768px) and (max-device-width : 1024px)
        and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
        /* Styles */
        }
        /* Desktops and laptops ----------- */
        @media only screen  and (min-width : 1224px) {
        /* Styles */
        }
       
        /* Large screens ----------- */
        @media only screen  and (min-width : 1824px) {
        /* Styles */
        }
       
        /* iPhone 4 ----------- */
        @media only screen and (min-device-width : 320px) and (max-device-width : 480px)
        and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
        /* Styles */
        }
       
        @media only screen and (min-device-width : 320px) and (max-device-width : 480px)
        and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
        /* Styles */
        }
       
        /* iPhone 5 ----------- */
        @media only screen and (min-device-width: 320px) and (max-device-height: 568px)
        and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        @media only screen and (min-device-width: 320px) and (max-device-height: 568px)
        and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        /* iPhone 6 ----------- */
        @media only screen and (min-device-width: 375px) and (max-device-height: 667px)
        and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        @media only screen and (min-device-width: 375px) and (max-device-height: 667px)
        and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        /* iPhone 6+ ----------- */
        @media only screen and (min-device-width: 414px) and (max-device-height: 736px)
        and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        @media only screen and (min-device-width: 414px) and (max-device-height: 736px)
        and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        /* Samsung Galaxy S3 ----------- */
        @media only screen and (min-device-width: 320px) and (max-device-height: 640px)
        and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        @media only screen and (min-device-width: 320px) and (max-device-height: 640px)
        and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
        /* Styles */
        }
       
        /* Samsung Galaxy S4 ----------- */
        @media only screen and (min-device-width: 320px) and (max-device-height: 640px)
        and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
        /* Styles */
        }
       
        @media only screen and (min-device-width: 320px) and (max-device-height: 640px)
        and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
        /* Styles */
        }
       
        /* Samsung Galaxy S5 ----------- */
        @media only screen and (min-device-width: 360px) and (max-device-height: 640px)
        and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
        /* Styles */
        }
       
        @media only screen and (min-device-width: 360px) and (max-device-height: 640px)
        and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
        /* Styles */
        }


  • 0 comments:

    Post a Comment

    GET A FREE QUOTE NOW

    I am flexible and would like to work with you long term, and currently I am looking for a fulltime job with a long term opportunity, but able to work also part-time, get free qoute for project.

    Search This Blog

    Powered by Blogger.

    Mga Pahina

    ADDRESS

    Purok 5-A, Brgy. Magdum, Tagum City 8100, Davao del Norte, Philippines

    EMAIL

    gransebryan@gmail.com
    bryanworkdevs@gmail.com