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

質問編集履歴

1

現状のコード追加

2019/08/28 07:53

投稿

owowowsam
owowowsam

スコア18

title CHANGED
File without changes
body CHANGED
@@ -4,4 +4,86 @@
4
4
  以下のポイントでどう記述すれば実現できるか思いつかずどなたかアイディアをいただけると嬉しいです。
5
5
 
6
6
  ・タイトル枠の最後以外は右端が三角の形になる。リストの最後の内容のタイトルには角が無い。
7
- ・内容のボックスの高さは画像は揃えてないが揃えても問題ない。
7
+ ・内容のボックスの高さは画像は揃えてないが揃えても問題ない。
8
+
9
+
10
+ ```ここに言語を入力
11
+ <!DOCTYPE html>
12
+ <html lang="ja">
13
+ <head>
14
+ <meta charset="utf-8">
15
+ <title>list test</title>
16
+ <style>
17
+ li.flex-item1 h1:first-child {
18
+ padding-left: 1em;
19
+ border-radius: 5px 0 0 5px;
20
+ }
21
+ li.flex-item1 h1::after,
22
+ li.flex-item1 h1::before {
23
+ position: absolute;
24
+ top: 50%;
25
+ right: -1.5em;
26
+ margin-top: -1.48em;
27
+ content: '';
28
+ border-top: 1.48em solid transparent;
29
+ border-bottom: 1.48em solid transparent;
30
+ border-left: 1.5em solid;
31
+ }
32
+ ul {
33
+ display: flex;
34
+ padding:0;
35
+ margin:0;
36
+ list-style: none;
37
+
38
+ min-width:200px;
39
+ flex-wrap: wrap;
40
+ display: flex;
41
+ flex-direction: row;
42
+ justify-content: center;
43
+ align-items: stretch;
44
+ align-items: flex-start;
45
+
46
+ }
47
+ li {
48
+ padding:0;
49
+ margin:0;
50
+ background-color:lightgrey;
51
+
52
+ }
53
+ h1.flex-title{
54
+ font-size:110%;
55
+ background-color: orange;
56
+ padding:0;
57
+ margin:0;
58
+ }
59
+ .flex-item1 {
60
+ margin-bottom:20px;
61
+
62
+ }
63
+ </style>
64
+ </head>
65
+ <body>
66
+
67
+ <ul>
68
+ <li class="flex-item1">
69
+ <h1 class="flex-title">Title 1</h1>
70
+ xxxxxxxxxxxx</br>
71
+ xxxxxxxxxxx</br>
72
+ xxxxxxxxxxxxxxxxx</li>
73
+ <li class="flex-item1">
74
+ <h1 class="flex-title">Title 2</h1>
75
+ xxxxxxxxxxx</li>
76
+ <li class="flex-item1">
77
+ <h1 class="flex-title">Title 3</h1>xxxxxxxxxxx</li>
78
+ <li class="flex-item1">
79
+ <h1 class="flex-title">Title 1</h1>
80
+ xxxxxxxxxxx</li>
81
+ <li class="flex-item1">
82
+ <h1 class="flex-title">Title 2</h1>
83
+ xxxxxxxxxxx</li>
84
+ <li class="flex-item1">
85
+ <h1 class="flex-title">Title 3</h1>xxxxxxxxxxx</li>
86
+ </ul>
87
+ </body>
88
+ </html>
89
+ ```