Change screen and update css

// if screen changed in ID(section), then update something..

var screensize= $( window ).width();
    if(screensize<=992){

            if($('#post-814').length>0)
            {
                $('.fw-col-md-3').addClass('col-xs-6');
            }
        }
changething = function(screensize){
        if(screensize<=992){

            if($('#post-814').length>0)
            {
                $('.fw-col-md-3').addClass('col-xs-6');

            }
        }
        els...
                    

How to make a div at center

Make a div element at center of its parent

Making an element be situated at center of its parent element is a common task as a Web developer. For example, to make B at the center of its parent A: file

..................

How to set font-sizes correctly in CSS

When to use: px, rem, em and %

In CSS, px,rem, em and % are the most often used units for setting font sizes. But the question here is, what are the differences between them, and which one should we use in styling pages.

Differences of units

  • px

    px is the main absolute unit of mesurement (among pt, %, cm, etc).

    px is easy to use, because programmers are usually familiar with pixels, which are also used to measure the resolution of computer, tablet or mobile screens.

..................