回答編集履歴
1
コード追加
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
(誤)
|
6
6
|
|
7
7
|
`<div class="shop-brock">`
|
8
8
|
|
@@ -11,3 +11,231 @@
|
|
11
11
|
(正)
|
12
12
|
|
13
13
|
`<div class="shop-block">`
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
上記で画像とテキストは横並びになります。
|
18
|
+
|
19
|
+
模写先のページではテキスト部分(住所など)はテーブルにしてますが、
|
20
|
+
|
21
|
+
Flexでするなら、下記のような感じですね。
|
22
|
+
|
23
|
+
.shop-block__container には flex は設定せずに、shop-block__wrapper にflexを設定します。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
---
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```html
|
34
|
+
|
35
|
+
<section class="shop-information">
|
36
|
+
|
37
|
+
<div class="common-inner">
|
38
|
+
|
39
|
+
<h2 class="section-title">Shop shop-information</h2>
|
40
|
+
|
41
|
+
<p class="section-text">shiroの店舗情報をご紹介します。</p>
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
<div class="shop-block">
|
46
|
+
|
47
|
+
<p class="shop-block__image">
|
48
|
+
|
49
|
+
<img src="https://placehold.jp/480x316.png" alt="">
|
50
|
+
|
51
|
+
</p>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div class="shop-block__container">
|
56
|
+
|
57
|
+
<div class="shop-block__wrapper">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<p class="shop-brock__title">住所</p>
|
62
|
+
|
63
|
+
<p class="shop-brock__text">〒810-0001 福岡県福岡市中央区天神0-0-0</p>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div class="shop-block__wrapper">
|
70
|
+
|
71
|
+
<p class="shop-brock__title">電話番号</p>
|
72
|
+
|
73
|
+
<p class="shop-brock__text">0120-000-000</p>
|
74
|
+
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div class="shop-block__wrapper">
|
80
|
+
|
81
|
+
<p class="shop-brock__title">営業時間</p>
|
82
|
+
|
83
|
+
<p class="shop-brock__text">11:00-20:30 (定休日:水曜日)</p>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<div class="shop-block__wrapper">
|
90
|
+
|
91
|
+
<p class="shop-brock__title">アクセス</p>
|
92
|
+
|
93
|
+
<p class="shop-brock__text">天神駅12a出口から徒歩6分<br>東京駅8b出口から徒歩12分</p>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</section>
|
108
|
+
|
109
|
+
```
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
```css
|
114
|
+
|
115
|
+
@charset "UTF-8";
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
*, *::before, *::after {
|
120
|
+
|
121
|
+
box-sizing: border-box;
|
122
|
+
|
123
|
+
margin: 0;
|
124
|
+
|
125
|
+
padding: 0;
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
body {
|
130
|
+
|
131
|
+
margin: 0;
|
132
|
+
|
133
|
+
font-family: sans-serif;
|
134
|
+
|
135
|
+
font-size: 16px;
|
136
|
+
|
137
|
+
color: #2b2b2b;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
h1, h2, h3, p {
|
144
|
+
|
145
|
+
margin: 0;
|
146
|
+
|
147
|
+
padding: 0;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
a {
|
154
|
+
|
155
|
+
color: #2b2b2b;
|
156
|
+
|
157
|
+
text-decoration: none;
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
section {
|
164
|
+
|
165
|
+
text-align: center;
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
.common-inner{
|
172
|
+
|
173
|
+
padding: 80px 0;
|
174
|
+
|
175
|
+
max-width: 960px;
|
176
|
+
|
177
|
+
margin: 0 auto;
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
.shop-block{
|
182
|
+
|
183
|
+
display: flex;
|
184
|
+
|
185
|
+
justify-content: space-between;
|
186
|
+
|
187
|
+
align-items: center;
|
188
|
+
|
189
|
+
width: 100%;
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
.shop-block__image{
|
196
|
+
|
197
|
+
width: 50%;
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
.shop-block__container{
|
204
|
+
|
205
|
+
width: 50%;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
.shop-block__wrapper{
|
212
|
+
|
213
|
+
display: flex;
|
214
|
+
|
215
|
+
align-items: center;
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
.shop-brock__title {
|
222
|
+
|
223
|
+
flex: 0 0 25%;
|
224
|
+
|
225
|
+
border-right: 1px solid #a0a0a0;
|
226
|
+
|
227
|
+
padding: 10px;
|
228
|
+
|
229
|
+
margin: 10px;
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
.shop-brock__text {
|
236
|
+
|
237
|
+
padding: 10px;
|
238
|
+
|
239
|
+
}
|
240
|
+
|
241
|
+
```
|