Ajax Loader
HTML
<div>Simple Responsive Grid</div>
1
<div>Simple Responsive Grid</div>
2
  <span class="grid">
3
    <div class="unit-2">Simple Responsive Grid</div>
4
    <div class="unit-2">Simple Responsive Grid</div>
5
        
6
    <div class="unit-3">Simple Responsive Grid</div>
7
    <div class="unit-3">Simple Responsive Grid</div>
8
    <div class="unit-3">Simple Responsive Grid</div>
9
        
10
    <div class="unit-4">Simple Responsive Grid</div>
11
    <div class="unit-4">Simple Responsive Grid</div>
12
    <div class="unit-4">Simple Responsive Grid</div>
13
    <div class="unit-4">Simple Responsive Grid</div>
14
  </span>
15
    
16
<img src="http://placehold.it/400x300">
17
  <span class="grid">
18
    <img class="unit-2" src="http://placehold.it/400x300">
19
    <img class="unit-2" src="http://placehold.it/400x300">
20
        
21
    <img class="unit-3" src="http://placehold.it/400x300">
22
    <img class="unit-3" src="http://placehold.it/400x300">
23
    <img class="unit-3" src="http://placehold.it/400x300">
24
        
25
    <img class="unit-4" src="http://placehold.it/400x300">
26
    <img class="unit-4" src="http://placehold.it/400x300">
27
    <img class="unit-4" src="http://placehold.it/400x300">
28
    <img class="unit-4" src="http://placehold.it/400x300">
29
  </span>
 
CSS
div {
1
div {
2
    font-family: monospace;
3
    font-size: 80%;
4
    color: white;
5
    text-align: center;
6
    line-height: 100%;
7
}
8
 
9
div,
10
img {
11
    width: 100%;
12
    margin-bottom: 10px;
13
    background-color: black; /* optional border color */
14
    padding: 10px; /* optional border width */
15
    box-sizing: border-box;
16
}
17
 
18
.grid {
19
    display: block;
20
    margin-left: -10px;
21
}
22
 
23
.unit-2,
24
.unit-3,
25
.unit-4 {
26
    float: left;
27
    border-left: 10px solid transparent;
28
    box-sizing: border-box;
29
    background-clip: padding-box;
30
}
31
 
32
.unit-2 {
33
    width: 50%;
34
}
35
 
36
.unit-3 {
37
    width: 33.3%;
38
}
39
 
40
.unit-4 {
41
    width: 25%;
42
}
 

Simple Responsive Grid

CSSDeck G+