回答編集履歴
1
-追記-
test
CHANGED
@@ -1 +1,51 @@
|
|
1
1
|
「sample logo」をdivで背景表示と`position: relative;`設定し、snsアイコンを`position: absolute;`で任意の好きな位置に設定ではどうですか?
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
-追記-
|
6
|
+
|
7
|
+
ひとつの例として
|
8
|
+
|
9
|
+
```HTML
|
10
|
+
|
11
|
+
<div class="sample">
|
12
|
+
|
13
|
+
<img src="SNSアイコンのパス" class="sns">
|
14
|
+
|
15
|
+
</div>
|
16
|
+
|
17
|
+
```
|
18
|
+
|
19
|
+
```CSS
|
20
|
+
|
21
|
+
.sample {
|
22
|
+
|
23
|
+
margin: 0 auto;
|
24
|
+
|
25
|
+
width: ***px; /* ロゴ画像の幅 */
|
26
|
+
|
27
|
+
height: ***px; /* ロゴ画像の高さ */
|
28
|
+
|
29
|
+
position: relative;
|
30
|
+
|
31
|
+
background-image: url(ロゴ画像のパス);
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
.sns {
|
40
|
+
|
41
|
+
position: absolute;
|
42
|
+
|
43
|
+
right: -***px; /* SNSアイコンの幅分をマイナス */
|
44
|
+
|
45
|
+
bottom: 0;
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
```
|