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

質問編集履歴

2

CSSの抜粋箇所

2021/10/08 08:20

投稿

Kinomaru
Kinomaru

スコア6

title CHANGED
File without changes
body CHANGED
@@ -36,6 +36,88 @@
36
36
  </div>
37
37
  ```
38
38
  ```CSS
39
+ main {
40
+ width: 100%;
41
+ }
42
+ section{
43
+ width: 100%;
44
+ text-align: center;
45
+ margin-top: 70px;
46
+ }
47
+ section .container {
48
+ margin-bottom: 80px;
49
+ }
50
+ .content {
51
+ max-width: 1200px;
52
+ margin: auto;
53
+ }
54
+ h2 {
55
+ font-size: 30px;
56
+ letter-spacing: 3px;
57
+ color: #3a424a;
58
+ margin-bottom: 50px;
59
+ }
60
+ h2::before, h2::after {
61
+ content: "・";
62
+ }
63
+
64
+ ul {
65
+ list-style: none;
66
+ }
67
+
68
+ .contact .container {
69
+ display: block;
70
+ position: relative;
71
+ }
72
+ #contact p {
73
+ margin-bottom: 30px;
74
+ }
75
+
76
+
77
+ .form {
78
+ width: 68%;
79
+ margin: auto;
80
+ }
81
+ .form ul {
82
+ width: 80%;
83
+ text-align: left;
84
+ margin: auto;
85
+ position: relative;
86
+ }
87
+ .form li {
88
+ position: relative;
89
+ }
90
+ .form li + li {
91
+ margin-top: 40px;
92
+ }
93
+ .form li:last-child{
94
+ text-align: center;
95
+ }
96
+ .form label{
97
+ font-size: 14px;
98
+ display: block;
99
+ }
100
+ .form-item {
101
+ width: 100%;
102
+ border: none;
103
+ border-bottom: 2px solid #cca8a8;
104
+ background: #ffffff00
105
+ }
106
+ .form-item:focus {
107
+ background: white;
108
+ }
109
+ .form-per {
110
+ height: 30px;
111
+ outline: none;
112
+ }
113
+ .form-subs {
114
+ height: 80px;
115
+ outline: none;
116
+ }
117
+ .submit {
118
+ width: fit-content;
119
+ margin: 30px auto 0;
120
+ }
39
121
  .submit::after{
40
122
  content: "";
41
123
  width: 141.5px;
@@ -68,4 +150,28 @@
68
150
  z-index: 2;
69
151
  cursor: pointer
70
152
  }
153
+
154
+ .bg-col {
155
+ width: 60%;
156
+ height: 480px;
157
+ background-color: #fbfbfb;;
158
+ position: absolute;
159
+ top: -6%;
160
+ left: 20%;
161
+ z-index: -1;
162
+ border-radius: 30px;
163
+ }
164
+ .bg-tex {
165
+ width: 100%;
166
+ height: 100%;
167
+ background-image: url(image/paper10.png);
168
+ background-size: auto;
169
+ background-position: 20%;
170
+ border-radius: 30px;
171
+ position: absolute;
172
+ top: 0;
173
+ left: 0;
174
+ z-index: -1;
175
+ opacity: 0.1;
176
+ }
71
177
  ```

1

タイトルの編集

2021/10/08 08:20

投稿

Kinomaru
Kinomaru

スコア6

title CHANGED
@@ -1,1 +1,1 @@
1
- hoverすると浮き上がるようなボタンを作たい
1
+ hoverすると浮き上がるようなボタンを作が、ブラウザによってズレが生じてしまうので、そのズレを解消した
body CHANGED
File without changes