質問編集履歴

3

ソースコード

2017/11/21 05:31

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- 画像を重ねて上に表示ることについて
1
+ 画像を重ねて表示させることについて
test CHANGED
@@ -8,11 +8,7 @@
8
8
 
9
9
  ![イメージ説明](bcab853030f164f6e75384dcb950781f.png)
10
10
 
11
-
12
-
13
- HTML5
14
-
15
- ```ここに言語を入力
11
+ ```PHP
16
12
 
17
13
  <section id="access" class="access">
18
14
 
@@ -50,11 +46,7 @@
50
46
 
51
47
  ```
52
48
 
53
-
54
-
55
- css3
56
-
57
- ```ここに言語を入力
49
+ ```SCSS
58
50
 
59
51
  .news {
60
52
 
@@ -169,3 +161,53 @@
169
161
  }
170
162
 
171
163
  ```
164
+
165
+ 完成しました、ありがとうございます。
166
+
167
+ ```SCSS
168
+
169
+ /*--------------------------------------------------------------
170
+
171
+ # access
172
+
173
+ --------------------------------------------------------------*/
174
+
175
+ .access {
176
+
177
+ padding-top: 10rem;
178
+
179
+ background:
180
+
181
+ url(images/illust-access01.png) 50% 10% no-repeat;
182
+
183
+ }
184
+
185
+
186
+
187
+ .access .access-map {
188
+
189
+ position: absolute;
190
+
191
+ padding: 0 1.8rem;
192
+
193
+ z-index: 1;
194
+
195
+ @include media-breakpoint-down(sm) {
196
+
197
+ position: static;
198
+
199
+ padding: 0 0;
200
+
201
+ margin-bottom: 1rem;
202
+
203
+ z-index: 0;
204
+
205
+ }
206
+
207
+ }
208
+
209
+ ```
210
+
211
+ 完成しました、ありがとうございます。
212
+
213
+ ![イメージ説明](e6e33cbd95481a3cf0390a981b959576.png)

2

ソースコード

2017/11/21 05:31

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,8 @@
3
3
  地図の画像を重ねて上に表示させたいのですが、ご教示いただければ幸いです。
4
4
 
5
5
  マイナスマージンとz-indexwを試したのですが、上手くいきません。
6
+
7
+ 地図が青い画像の下に潜っているので、地図を上に表示させたいのです。
6
8
 
7
9
  ![イメージ説明](bcab853030f164f6e75384dcb950781f.png)
8
10
 

1

ソースコード

2017/11/20 02:35

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,165 @@
5
5
  マイナスマージンとz-indexwを試したのですが、上手くいきません。
6
6
 
7
7
  ![イメージ説明](bcab853030f164f6e75384dcb950781f.png)
8
+
9
+
10
+
11
+ HTML5
12
+
13
+ ```ここに言語を入力
14
+
15
+ <section id="access" class="access">
16
+
17
+ <div class="container">
18
+
19
+ <div class="section-header">
20
+
21
+ <h2><img class="img-fluid" src="<?php echo get_template_directory_uri(); ?>/images/title-access.png" alt="title-access"></h2>
22
+
23
+ </div>
24
+
25
+ <div class="row">
26
+
27
+ <div class="col-md-6">
28
+
29
+ <img class="img-fluid access-map" src="<?php echo get_template_directory_uri(); ?>/images/access-map.png" alt="access-map">
30
+
31
+ </div>
32
+
33
+ <div class="col-md-6">
34
+
35
+ <h3>東京都立産業貿易センター大東館</h3>
36
+
37
+ <p>〒111-0033<br>東京都台東区花川戸2-6-5</p>
38
+
39
+ <a class="btn btn-access" href="#">Googleマップを開く</a>
40
+
41
+ </div>
42
+
43
+ </div>
44
+
45
+ </div>
46
+
47
+ </section><!-- .access -->
48
+
49
+ ```
50
+
51
+
52
+
53
+ css3
54
+
55
+ ```ここに言語を入力
56
+
57
+ .news {
58
+
59
+ position: relative;
60
+
61
+ padding: 20rem 0 70rem 0;
62
+
63
+ background:
64
+
65
+ url(images/illust-news01.png) 90% 60% no-repeat,
66
+
67
+ url(images/illust-access02.png) 5% 0% no-repeat,
68
+
69
+ url(images/bg-news.png) center top /cover no-repeat;
70
+
71
+ }
72
+
73
+
74
+
75
+ .news .news-img {
76
+
77
+ display: block;
78
+
79
+ margin: 0 auto;
80
+
81
+ }
82
+
83
+
84
+
85
+ .news .lines {
86
+
87
+ border-top: .1rem solid $white;
88
+
89
+ }
90
+
91
+
92
+
93
+ .news ul {
94
+
95
+ list-style: none;
96
+
97
+ color: $white;
98
+
99
+ @include media-breakpoint-down(sm) {
100
+
101
+ margin-bottom: 3rem;
102
+
103
+ }
104
+
105
+ }
106
+
107
+ ul li {
108
+
109
+ width: 100%;
110
+
111
+ border-bottom: 1px solid $white;
112
+
113
+ }
114
+
115
+
116
+
117
+ .news .twitter-timeline {
118
+
119
+ position: absolute !important;
120
+
121
+ top: 74rem;
122
+
123
+ left: 40rem;
124
+
125
+ @include media-breakpoint-down(sm) {
126
+
127
+ position: relative !important;
128
+
129
+ top: 0;
130
+
131
+ left: 0;
132
+
133
+ }
134
+
135
+ }
136
+
137
+
138
+
139
+ .entry-date {
140
+
141
+ margin-bottom: 0;
142
+
143
+ @include media-breakpoint-down(sm) {
144
+
145
+ display: block;
146
+
147
+ margin-bottom: .5rem;
148
+
149
+ }
150
+
151
+ }
152
+
153
+
154
+
155
+ .news .entry-title {
156
+
157
+ display: inline-block;
158
+
159
+ font-size: 1rem;
160
+
161
+ @include media-breakpoint-down(sm) {
162
+
163
+ display: block;
164
+
165
+ }
166
+
167
+ }
168
+
169
+ ```