回答編集履歴

1

コード追記

2021/05/03 07:45

投稿

hatena19
hatena19

スコア33790

test CHANGED
@@ -33,3 +33,45 @@
33
33
  }
34
34
 
35
35
  ```
36
+
37
+
38
+
39
+ ---
40
+
41
+ display:flex; を使う場合も親要素に設定します。
42
+
43
+
44
+
45
+ ```css
46
+
47
+ .main-right-wrapper{
48
+
49
+ width:35%;
50
+
51
+ float:right;
52
+
53
+ display: flex;
54
+
55
+ flex-direction: column;
56
+
57
+ align-items: flex-start;
58
+
59
+ }
60
+
61
+
62
+
63
+ .main-right-wrapper img{
64
+
65
+ width:100px;
66
+
67
+ height:100px;
68
+
69
+ border-radius: 50%;
70
+
71
+ margin-top:100px;
72
+
73
+ align-self: center;
74
+
75
+ }
76
+
77
+ ```