CSS ##

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
.col {
    border:0px solid rgba(0,0,0,0);
    float:left;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    -moz-background-clip:padding-box !important;
    -webkit-background-clip:padding-box !important;
    background-clip:padding-box !important;
}

    /* 1. 1 Column Grid 0px - 639px 
    ----------------------------------------------------------------------------- 
    Span 1:    100%
    ----------------------------------------------------------------------------- */
    @media only screen and (min-width: 0px) and (max-width: 639px){
 
        .col {
            margin-left:3%;
        	padding:0 0%;
        }
        
        .row .col:first-child {
            margin-left:0;
        }    
        
        /*
        Add your semantic classnames in alongside their corresponding spans here. e.g.
        
        .span_3,
        .my_semantic_class_name {
            ...
        }
        */
        
        .span_1 {
            margin-left:0;
            width:100%;
        }

    }

    /* 2. 1 Column Grid 640px - 759px 
    -----------------------------------------------------------------------------   
    Span 1:    100%
    ----------------------------------------------------------------------------- */

    @media only screen and (min-width: 640px) and (max-width: 759px){
        
        .col {
            margin-left:3%;
        	padding:0 0%;
        }
        
        .row .col:first-child {
            margin-left:0;
        }
        
        .span_1 {
            margin-left:0;
            width:100%;
        }

    }

    /* 3. 2 Column Grid 760px - 959px 
    -----------------------------------------------------------------------------   
    Span 1:    48.5%
    Span 2:    100%
    ----------------------------------------------------------------------------- */

    @media only screen and (min-width: 760px) and (max-width: 959px) {
        
        .col {
            margin-left:3%;
        	padding:0 0%;
        }
        
        .row .col:first-child {
            margin-left:0;
        }
           
        .span_1 {
            width:48.5%;
        }

        .span_2 {
            margin-left:0;
            width:100%;
        }

    }

    /* 4. 4 Column Grid 960px - Infinity 
    -----------------------------------------------------------------------------   
    Span 1:    22.75%
    Span 2:    48.5%
    Span 3:    74.25%
    Span 4:    100% 
    ----------------------------------------------------------------------------- */

    @media only screen and (min-width: 960px) {
        
        .col {
            margin-left:3%;
        	padding:0 0%;
        }
        
        .row .col:first-child {
            margin-left:0;
        }
     
        .span_1 {
            width:22.75%;
            float:left;
        }

        .span_2 {
            width:48.5%;
            float:left;
        }
        .span_3 {
            width:74.25%;
            float:left;
        }
        .span_4 {
            margin-left:0;
            width:100%;
        }
    }

HEADER HTML ##

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>

<html <?php language_attributes(); ?>>

<head>

<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">

<title>
  <?php
    if( ! is_home() ):
      wp_title( '|', true, 'right' );
    endif;
    bloginfo( 'name' );
  ?>
</title>

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>

PAGE HTML ##

1
2
3
4
5
6
7
<div class="row">
<div class="span_1 col">Test</div>
<div class="span_1 col">Test</div>
<div class="span_1 col">Test</div>
<div class="span_1 col">Test</div>
</div>