Ajax Loader
×
HTML
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html>
3
 <head>
4
  <meta charset="utf-8">
5
  <title>Ссылки</title>
6
 
7
 </head>
8
 <body>
9
   
10
   
11
  <div class="weather">
12
    <p>31.08</p>
13
    <img src="http://htmlbook.ru/files/weather-sun.jpg"> <span>+20<sup>o</sup></span>
14
     </div>
15
   <div class="weather">
16
    <p>1.09</p>
17
    <img src="http://htmlbook.ru/files/weather-snow.jpg"><span>-3<sup>o</sup></span>
18
    </div>
19
   <div class="weather">
20
    <p>02.09</p>
21
    <img src="http://htmlbook.ru/files/weather-blizzard.jpg"><span>-10<sup>o</sup></span>
22
   
23
     </div>
24
     
25
   
26
 </body>
27
</html>
 
CSS
 
1
 
2
div {
3
  float:left;
4
  margin:1px;
5
  width:133px;
6
  height:170px;
7
  
8
 
9
  
10
  
11
  
12
}
13
.weather:hover {
14
 
15
  box-shadow: 0 0 3px 5px #ccc;
16
  
17
}
18
 
19
p {
20
  text-align:center;
21
  background: blue;
22
  color: #fff;
23
  font-size:1.6em;
24
  width:134px;
25
  height:30px;
26
  padding:0;
27
  margin:0;
28
 
29
}
30
span {
31
  
32
  font-size: 2em;
33
  text-align:center;
34
  font-size:1.6em;
35
  width:134px;
36
  height:29px;
37
  display:block;
38
}
39
img {
40
  
41
  margin-left:10px;
42
}
43
 
44
 
 

Untitled

CSSDeck G+