回答編集履歴
1
元にしているサイトだと全て横並びでは無く画像と住所データのブロックが横並びだったので修正しました。
answer
CHANGED
@@ -2,34 +2,101 @@
|
|
2
2
|
以下で横並びになりました。
|
3
3
|
|
4
4
|
```html
|
5
|
+
<section class="shop-information">
|
6
|
+
<div class="common-inner">
|
7
|
+
<h2 class="section-title">Shop shop-information</h2>
|
8
|
+
<p class="section-text">shiroの店舗情報をご紹介します。</p>
|
9
|
+
|
10
|
+
|
5
11
|
<div class="shop-block__container">
|
6
12
|
|
7
|
-
<div class="shop-
|
13
|
+
<div class="shop-block__wrapper">
|
8
14
|
<p class="shop-block__image">
|
9
15
|
<img src="https://shptomoya.github.io/shiro/img/shop_information.png" alt="">
|
10
16
|
</p>
|
11
17
|
</div>
|
12
18
|
|
19
|
+
<div>
|
13
|
-
|
20
|
+
<div class="shop-block__wrapper">
|
14
|
-
|
21
|
+
<p class="shop-block__title">住所</p>
|
15
|
-
|
22
|
+
<p class="shop-block__text">〒810-0001 福岡県福岡市中央区天神0-0-0</p>
|
16
|
-
|
23
|
+
</div>
|
17
24
|
|
18
|
-
|
25
|
+
<div class="shop-block__wrapper">
|
19
|
-
|
26
|
+
<p class="shop-brock__title">電話番号</p>
|
20
|
-
|
27
|
+
<p class="shop-brock__text">0120-000-000</p>
|
21
|
-
|
28
|
+
</div>
|
22
29
|
|
23
|
-
|
30
|
+
<div class="shop-block__wrapper">
|
24
|
-
|
31
|
+
<p class="shop-block__title">営業時間</p>
|
25
|
-
|
32
|
+
<p class="shop-block__text">11:00-20:30 (定休日:水曜日)</p>
|
26
|
-
|
33
|
+
</div>
|
27
34
|
|
28
|
-
|
35
|
+
<div class="shop-block__wrapper">
|
29
|
-
|
36
|
+
<p class="shop-block__title">アクセス</p>
|
30
|
-
|
37
|
+
<p class="shop-block__text">天神駅12a出口から徒歩6分 東京駅8b出口から徒歩12分</p>
|
38
|
+
</div>
|
31
39
|
</div>
|
32
|
-
|
33
40
|
</div>
|
34
41
|
</div>
|
42
|
+
|
43
|
+
</section>
|
35
|
-
```
|
44
|
+
```
|
45
|
+
|
46
|
+
```css
|
47
|
+
@charset "UTF-8";
|
48
|
+
|
49
|
+
*, *::before, *::after {
|
50
|
+
box-sizing: border-box;
|
51
|
+
margin: 0;
|
52
|
+
padding: 0;
|
53
|
+
}
|
54
|
+
body {
|
55
|
+
margin: 0;
|
56
|
+
font-family: sans-serif;
|
57
|
+
font-size: 16px;
|
58
|
+
color: #2b2b2b;
|
59
|
+
}
|
60
|
+
|
61
|
+
h1, h2, h3, p {
|
62
|
+
margin: 0;
|
63
|
+
padding: 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
a {
|
67
|
+
color: #2b2b2b;
|
68
|
+
text-decoration: none;
|
69
|
+
}
|
70
|
+
|
71
|
+
section {
|
72
|
+
text-align: center;
|
73
|
+
}
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
.common-inner{
|
78
|
+
padding: 80px 0;
|
79
|
+
max-width: 960px;
|
80
|
+
margin: 0 auto;
|
81
|
+
}
|
82
|
+
.shop-block{
|
83
|
+
display: flex;
|
84
|
+
justify-content: space-between;
|
85
|
+
align-items: center;
|
86
|
+
width: 100%;
|
87
|
+
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
.shop-block__image{
|
92
|
+
width: 50%;
|
93
|
+
|
94
|
+
}
|
95
|
+
|
96
|
+
.shop-block__container{
|
97
|
+
display: flex;
|
98
|
+
width: 50%;
|
99
|
+
}
|
100
|
+
```
|
101
|
+
|
102
|
+
block など文字の修正も少し入れました。
|