質問編集履歴
1
ソースコードを追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
住所/〜〜という記述をdl dd dtで書いています。
|
3
3
|
横並びにした上で複数行にしたいです。
|
4
4
|
|
5
|
-
ここに実現したいことを箇条書きで書いてください。
|
6
5
|
- [ ] dlとdtの間に開いた隙間をなくして両者を詰めたい
|
7
6
|
|
8
7
|
### 前提
|
@@ -28,7 +27,76 @@
|
|
28
27
|
```ここに言語名を入力
|
29
28
|
HTML5、CSS
|
30
29
|
ソースコード
|
30
|
+
<div class="about">
|
31
|
+
<p>
|
32
|
+
沖縄で一度は絶対に食べたいソーキそば。<br>
|
33
|
+
店舗は店主の祖母の家という、築60年の琉球家屋。<br>
|
34
|
+
仏壇のある座敷にテーブルを並べた空間で、沖縄そばを味わえる。<br>
|
35
|
+
スープは鰹節を使用し、後味はさっぱり。<br>
|
36
|
+
別添えのフレッシュなよもぎで爽涼感もアップ。
|
37
|
+
</p>
|
38
|
+
<dl>
|
39
|
+
<dt>住所</dt>
|
40
|
+
<dd>沖縄県那覇市国場40-1</dd>
|
41
|
+
<dt>営業時間</dt>
|
42
|
+
<dd>11時~16時、土・日~18時(売り切れ次第終了)</dd>
|
43
|
+
<dt>休日</dt>
|
44
|
+
<dd>月</dd>
|
45
|
+
</dl>
|
46
|
+
</div>
|
47
|
+
|
31
|
-
|
48
|
+
.about {
|
49
|
+
margin: 30px 0 0 15px;
|
50
|
+
}
|
51
|
+
|
52
|
+
.about dl {
|
53
|
+
line-height: 1.8;
|
54
|
+
background-color: #2e8ae6;
|
55
|
+
margin: 40px 0 0 10px;
|
56
|
+
width: 65%;
|
57
|
+
padding: 30px 0 30px 20px;
|
58
|
+
}
|
59
|
+
|
60
|
+
.about dl dt:first-of-type {
|
61
|
+
background-image: url(images/map_icon.png);
|
62
|
+
background-repeat: no-repeat;
|
63
|
+
background-size: 20px;
|
64
|
+
background-position: left;
|
65
|
+
padding: 3px 10px 0 25px;
|
66
|
+
}
|
67
|
+
|
68
|
+
.about dl dt:nth-of-type(2) {
|
69
|
+
background-image: url(images/time_icon.png);
|
70
|
+
background-repeat: no-repeat;
|
71
|
+
background-size: 20px;
|
72
|
+
background-position: left;
|
73
|
+
padding: 3px 10px 0 25px;
|
74
|
+
}
|
75
|
+
|
76
|
+
.about dl dt:nth-last-child(2) {
|
77
|
+
background-image: url(images/calender_icon.png);
|
78
|
+
background-repeat: no-repeat;
|
79
|
+
background-size: 20px;
|
80
|
+
background-position: left;
|
81
|
+
padding: 3px 10px 0 25px;
|
82
|
+
}
|
83
|
+
|
84
|
+
.about dl dt,
|
85
|
+
.about dl dd {
|
86
|
+
color: #fff;
|
87
|
+
display: inline-block;
|
88
|
+
margin-inline-start: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
dt::after {
|
92
|
+
content: "/";
|
93
|
+
background-color: deeppink
|
94
|
+
}
|
95
|
+
|
96
|
+
.about dl dd {
|
97
|
+
width: 71%;
|
98
|
+
background-color: gold;
|
99
|
+
}
|
32
100
|
|
33
101
|
### 試したこと
|
34
102
|
googlechromのデベロッパーツールにて余白の犯人がどれか?の確認をしましたが、見つけられませんでした。
|