質問編集履歴

2

htmlとcssの修正

2019/07/19 03:00

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -111,3 +111,137 @@
111
111
  color: #fff;
112
112
 
113
113
  }
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ 【修正】
122
+
123
+ ```html
124
+
125
+ <div class="content one">
126
+
127
+ <div class="inner">
128
+
129
+ <div class="box">
130
+
131
+ <div class="left">
132
+
133
+ <img src="images/order_image01.jpg" alt="">
134
+
135
+ </div>
136
+
137
+ <div class="right">
138
+
139
+ <h3>見出し</h3>
140
+
141
+ <p>テキストが入ります。</p>
142
+
143
+ </div>
144
+
145
+ </div>
146
+
147
+ </div>
148
+
149
+ </div>
150
+
151
+ ```
152
+
153
+ ```css
154
+
155
+ .inner {
156
+
157
+ margin: auto;
158
+
159
+ width: 1000px;
160
+
161
+ }
162
+
163
+ .content {
164
+
165
+ background: #28304c;
166
+
167
+ height: 380px;
168
+
169
+ position: relative;
170
+
171
+ }
172
+
173
+ .content:before {
174
+
175
+ font-weight: 400;
176
+
177
+ font-style: italic;
178
+
179
+ display: block;
180
+
181
+ position: absolute;
182
+
183
+ top: 12%;
184
+
185
+ right: 15%;
186
+
187
+ color: rgba(154, 154, 154, 0.3);
188
+
189
+ font-size: 250px;
190
+
191
+ letter-spacing: 0;
192
+
193
+ line-height: 1.0;
194
+
195
+ }
196
+
197
+ .content.one:before {
198
+
199
+ content: '1';
200
+
201
+ }
202
+
203
+ .content .box {
204
+
205
+ position: relative;
206
+
207
+ padding-left: calc((100vw - 100%) / 2);
208
+
209
+ margin-left: calc(((100vw - 100%) / 2) * -1);
210
+
211
+ }
212
+
213
+ .content .box .left {
214
+
215
+ position: absolute;
216
+
217
+ left: 0;
218
+
219
+ top: -100px;
220
+
221
+ }
222
+
223
+ .content .box .left img {
224
+
225
+ width: auto;
226
+
227
+ height: 340px;
228
+
229
+ }
230
+
231
+ .content .box .right h3 {
232
+
233
+ font-size: 23px;
234
+
235
+ }
236
+
237
+ .content .box .right h3 p {
238
+
239
+ color: #fff;
240
+
241
+ }
242
+
243
+
244
+
245
+ ```
246
+
247
+ これでしょうでしょうか?再現しませんか?

1

画像を挿入しました。

2019/07/19 03:00

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ### 前提・実現したいこと
1
+ ![イメージ説明](a751171915c9f1cc7a9ab842ca93a4ea.png)### 前提・実現したいこと
2
2
 
3
3
 
4
4