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

質問編集履歴

3

追記しました

2021/11/25 07:11

投稿

free_teku
free_teku

スコア103

title CHANGED
File without changes
body CHANGED
@@ -251,4 +251,89 @@
251
251
  right: -8px;
252
252
  margin-right: 30px;
253
253
  }
254
+ ```
255
+
256
+ ### 追記
257
+ ```CSS
258
+ .footer-left {
259
+ display: -webkit-box;
260
+ display: -webkit-flex;
261
+ display: -ms-flexbox;
262
+ display: flex;
263
+ -webkit-box-pack: left;
264
+ -webkit-justify-content: left;
265
+ -ms-flex-pack: left;
266
+ justify-content: left;
267
+ -webkit-box-align: center;
268
+ -webkit-align-items: center;
269
+ -ms-flex-align: center;
270
+ align-items: center;
271
+ margin-right: auto;
272
+ }
273
+
274
+ .footer-left .nav .footer-list {
275
+ display: -webkit-box;
276
+ display: -webkit-flex;
277
+ display: -ms-flexbox;
278
+ display: flex;
279
+ -webkit-box-pack: left;
280
+ -webkit-justify-content: left;
281
+ -ms-flex-pack: left;
282
+ justify-content: left;
283
+ -webkit-box-align: center;
284
+ -webkit-align-items: center;
285
+ -ms-flex-align: center;
286
+ align-items: center;
287
+ margin-right: auto;
288
+ }
289
+
290
+ @media screen and (max-width: 700px) {
291
+ .footer-left .nav .footer-list {
292
+ display: -webkit-box;
293
+ display: -webkit-flex;
294
+ display: -ms-flexbox;
295
+ display: flex;
296
+ -webkit-box-orient: vertical;
297
+ -webkit-box-direction: normal;
298
+ -webkit-flex-direction: column;
299
+ -ms-flex-direction: column;
300
+ flex-direction: column;
301
+ padding-left: 50px;
302
+ display: block;
303
+ text-align: left;
304
+ }
305
+ }
306
+
307
+ .footer-left .nav .footer-list .footer-item {
308
+ margin: 32px 28px;
309
+ }
310
+
311
+ .footer-left .nav .footer-list:last-child {
312
+ margin-right: 0px;
313
+ }
314
+
315
+ .footer-left .nav .footer-list a {
316
+ color: #fff;
317
+ font-weight: bold;
318
+ display: inline-block;
319
+ position: relative;
320
+ padding-right: 43px;
321
+ }
322
+
323
+ .footer-left .nav .footer-list a:not(:last-child) {
324
+ content: "";
325
+ width: 1px;
326
+ height: 20px;
327
+ background-color: #fff;
328
+ position: absolute;
329
+ top: -8px;
330
+ right: -8px;
331
+ margin-right: 30px;
332
+ }
333
+
334
+ @media screen and (max-width: 700px) {
335
+ .footer-left .nav .footer-list a {
336
+ display: none;
337
+ }
338
+ }
254
339
  ```

2

追記しました

2021/11/25 07:11

投稿

free_teku
free_teku

スコア103

title CHANGED
File without changes
body CHANGED
@@ -14,6 +14,8 @@
14
14
  2 &:not(:last-child) にaタグのコードを書いても
15
15
  表題のように反応しない
16
16
 
17
+
18
+
17
19
  ### 該当のソースコード
18
20
 
19
21
  ```
@@ -219,4 +221,34 @@
219
221
  margin-right: 50px;
220
222
  color: #fff;
221
223
  }
224
+ ```
225
+
226
+ ### 追記
227
+ CSS
228
+ ```CSS
229
+ .header-item {
230
+ margin: 32px 28px;
231
+ }
232
+
233
+ &:last-child {
234
+ margin-right: 0px;
235
+ }
236
+
237
+ a {
238
+ color: #fff;
239
+ font-weight: bold;
240
+ display: inline-block;
241
+ position: relative;
242
+ padding-right: 43px;
243
+ }
244
+ a:not(:last-child) a:after {
245
+ content: "";
246
+ width: 1px;
247
+ height: 20px;
248
+ background-color: #fff;
249
+ position: absolute;
250
+ top: -8px;
251
+ right: -8px;
252
+ margin-right: 30px;
253
+ }
222
254
  ```

1

修正しました

2021/11/19 23:05

投稿

free_teku
free_teku

スコア103

title CHANGED
@@ -1,1 +1,1 @@
1
- Footer li last-childの議事要素を消したい
1
+ Footer li last-childの擬似要素を消したい
body CHANGED
File without changes