ex01.css
1.56 KB
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
html{
color:#000;
background:#fff;
padding: 0.5em;
font-size: 14px;
}
h1 {
font-size: 2em;
line-height: 150%;
margin-bottom: 0.5em;
border-bottom: 2px solid #ccc;
font-weight: bold;
text-align: center;
}
h3 {
font-size: 1.5em;
font-weight: bold;
margin: 1em 0 0.5em 0;
}
div {
margin: 0.5em 0;
}
p {
line-height: 160%;
margin: 1em 0;
}
img.main {
width: 100%;
}
a.more {
background-color: pink;
color: white;
text-decoration: none;
padding: 0.5em 1em;
margin: 1em 0;
border-radius: 0.5em;
}
.member ul > li {
display: inline-block;
float: left;
width: 50%;
padding: 0.5em 1em;
background-color: skyblue;
box-sizing: border-box;
color: white;
margin-bottom: 1px;
border-right: 1px solid white;
width: 33%;
}
.member ul > li:hover {
background-color: royalblue;
}
@media only screen and (min-device-width : 768px) {
div.img {
width: 50%;
display: inline-block;
vertical-align: top;
}
div.member {
width: 49%;
display: inline-block;
vertical-align: top;
padding-left: 1em;
box-sizing: border-box;
}
div.description {
vertical-align: top;
padding-left: 1em;
box-sizing: border-box;
}
div.description p {
margin-top: 0;
}
.member ul > li {
width: 100%;
}
}
@media only screen and (min-device-width : 1025px) {
div.img {
width: 30%;
display: inline-block;
}
div.description {
width: 50%;
padding-right: 1em;
display: inline-block;
}
div.member {
width: 19%;
box-sizing: border-box;
display: inline-block;
vertical-align: top;
}
.member ul > li {
width: 100%;
}
h3 {
margin-top: 0;
}
}