teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

コードを全て載せました。

2021/09/01 13:01

投稿

misaki.
misaki.

スコア3

title CHANGED
File without changes
body CHANGED
@@ -13,6 +13,208 @@
13
13
  ### 該当のソースコード
14
14
 
15
15
  ```HTML
16
+ <!doctype html>
17
+ <html lang="ja">
18
+ <head>
19
+ <!-- Required meta tags -->
20
+ <meta charset="utf-8">
21
+ <meta name="viewport" content="width=device-width, initial-scale=1">
22
+ <link rel="stylesheet" href="style.css">
23
+
24
+ <!-- Bootstrap CSS -->
25
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
26
+
27
+ <title>私は仕事が大好きです。</title>
28
+ </head>
29
+ <body>
30
+
31
+ <header>
32
+ <div class="top">
33
+ <div class="logo">
34
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
35
+ <nav>
36
+ <ul>
37
+ <li>TOP</li>
38
+ <li>PRODUDT</li>
39
+ <li>ABOUT</li>
40
+ <li>NEWS</li>
41
+ <li>CONTACT</li>
42
+ </ul>
43
+ </nav>
44
+ </div>
45
+
46
+
47
+
48
+ <div id="carouselExampleSlidesOnly" class="carousel slide carousel-fade" data-bs-ride="carousel">
49
+ <div class="carousel-inner">
50
+ <div class="carousel-item active">
51
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png" class=d-block " alt="...">
52
+ </div>
53
+ <div class="carousel-item">
54
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png" class="d-block "alt="...">
55
+ </div>
56
+ <div class="carousel-item">
57
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png" class="d-block " alt="...">
58
+ </div>
59
+ <div class="carousel-item">
60
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png" class="d-block " alt="...">
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </header>
66
+
67
+ <div class="main1">
68
+ <div class="text">
69
+ <h1>見出し</h1>
70
+ <p>テキストテキストテキストテキスト<br>
71
+ テキストテキストテキストテキスト<br>
72
+ テキストテキストテキストテキスト </p>
73
+ <img id=kago src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
74
+ <p>テキストテキストテキストテキスト<br>
75
+ テキストテキストテキストテキスト<br>
76
+ テキストテキストテキストテキスト </p>
77
+ </div>
78
+ </div>
79
+
80
+
81
+    <div class="main2">
82
+  <div class="lavel">
83
+   <h1>PRODCT</h1>
84
+  <a href="#">More</a>
85
+    </div>
86
+
87
+ <div class="container padding: 10px;">
88
+ <div class="row align-items-start justify-content-center margin-left: 0; margin-right: 0; ">
89
+ <div class="col-md-4 w-25 h-25 photo">
90
+ <a class="link" href="#">
91
+ <img d-block mx-auto img-fluid src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
92
+ <p>テキスト</p>
93
+ </a>
94
+ </div>
95
+ <div class="col-md-4 w-25 h-25 photo">
96
+ <a class="link" href="#">
97
+ <img d-block mx-auto img-fluid src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
98
+ <p>テキスト</p>
99
+ </a>
100
+ </div>
101
+ <div class="col-md-4 w-25 h-25 photo">
102
+ <a class="link" href="#">
103
+ <img d-block mx-auto img-fluid src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
104
+ <p>テキスト</p>
105
+ </a>
106
+ </div>
107
+ </div>
108
+ <div class="row align-items-center justify-content-center">
109
+ <div class="col-md-4 w-25 h-25 photo">
110
+ <a class="link" href="#">
111
+ <img d-block mx-auto img-fluid src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
112
+ <p>テキスト</p>
113
+ </a>
114
+ </div>
115
+ <div class="col-md-4 w-25 h-25 photo">
116
+ <a class="link" href="#">
117
+ <img d-block mx-auto img-fluid src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
118
+ <p>テキスト</p>
119
+ </a>
120
+ </div>
121
+ <div class="col-md-4 w-25 h-25 photo">
122
+ <a class="link" href="#">
123
+ <img d-block mx-auto img-fluid src="http://placehold.jp/24/cc9999/993333/150x100.png" alt="">
124
+ <p>テキスト</p>
125
+ </a>
126
+ </div>
127
+ </div>
128
+ </div>
129
+
130
+
131
+
132
+ <div class="main3">
133
+ <div class="lavel">
134
+ <h1>NEWS</h1>
135
+ <a href="#">More</a>
136
+ </div>
137
+
138
+
139
+ <div class="container">
140
+ <div class="row news align-items-start justify-content-center ">
141
+ <div class="col-md-6 photo2">
142
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png"  alt="">
143
+ </div>
144
+ <div class="col-md-6 comment">
145
+ <h2 id="text">テキスト</h2>
146
+ <time datetime=”2021”>2021年8月</time>
147
+ <p>テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</p>
148
+ </div>
149
+ </div>
150
+ <div class="row news align-items-start justify-content-center ">
151
+ <div class="col-md-6 photo2">
152
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png"  alt="">
153
+ </div>
154
+ <div class="col-md-6 comment">
155
+ <h2 id="text">テキスト</h2>
156
+ <time datetime=”2021”>2021年4月</time>
157
+ <p>テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</p>
158
+
159
+ </div>
160
+ </div>
161
+ <div class="row news align-items-start justify-content-center ">
162
+ <div class="col-md-6 photo2 ">
163
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png"  alt="">
164
+ </div>
165
+ <div class="col-md-6 comment">
166
+ <h2 id="text">テキスト</h2>
167
+ <time datetime=”2021”>2021年5月</time>
168
+ <p>テキストテキストテキストテキストテキストテキストテキストテキストテキスト</p>
169
+ </div>
170
+ </div>
171
+ <div class="row news align-items-start justify-content-center">
172
+ <div class="col-md-6 photo2 ">
173
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png"  alt="">
174
+ </div>
175
+ <div class="col-md-6 comment">
176
+ <h2 id="text">テキスト</h2>
177
+ <time datetime=”2021”>2021年6月</time>
178
+ <p>テキストテキスト</p>
179
+ </div>
180
+ </div>
181
+ <div class="row news align-items-start justify-content-center ">
182
+ <div class="col-md-6 photo2 ">
183
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png"  alt="">
184
+ </div>
185
+ <div class="col-md-6 comment">
186
+ <h2 id="text">テキスト</h2>
187
+ <time datetime=”2021”>2021年7月</time>
188
+ <p>テキストテキスト</p>
189
+ </div>
190
+ </div>
191
+ <div class="row news align-items-start justify-content-center ">
192
+ <div class="col-md-6 photo2">
193
+ <img src="http://placehold.jp/24/cc9999/993333/150x100.png"  alt="">
194
+ </div>
195
+ <div class="col-md-6 comment">
196
+ <h2 id="text">テキスト</h2>
197
+ <time datetime=”2021”>2021年3月</time>
198
+ <p>テキストテキスト</p>
199
+ </div>
200
+ </div>
201
+ </div>
202
+ </div>
203
+
204
+ <div class="net">
205
+ <a href="#">facebook</a>
206
+ <a href="#">twitter</a>
207
+ <a href="#">google</a>
208
+ </div>
209
+
210
+ <div class="sub-navi">
211
+ <ul>
212
+ <li>TOP</li>
213
+ <li>PRODUDT</li>
214
+ <li>ABOUT</li>
215
+ <li>CONTACT</li>
216
+ </ul>
217
+ </div>
16
218
  <footer>
17
219
 
18
220
  <div class="container">
@@ -26,6 +228,27 @@
26
228
  </div>
27
229
  </div>
28
230
  </footer>
231
+
232
+
233
+
234
+
235
+
236
+  
237
+
238
+
239
+ <!-- Optional JavaScript; choose one of the two! -->
240
+
241
+ <!-- Option 1: Bootstrap Bundle with Popper -->
242
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
243
+
244
+ <!-- Option 2: Separate Popper and Bootstrap JS -->
245
+ <!--
246
+ <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
247
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
248
+ -->
249
+ </body>
250
+ </html>
251
+
29
252
  ```
30
253
  ```css
31
254
  *{

1

スクリーンショットを追加しました。

2021/09/01 13:01

投稿

misaki.
misaki.

スコア3

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,5 @@
1
1
  ### 前提・実現したいこと
2
+ ![イメージ説明](ab8fe48fade1d3a55fae02081c6b7f29.png)
2
3
 
3
4
  フッターの下の余白を消したい
4
5