$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Marpでロゴ挿入
Search
KIYO
May 16, 2025
0
1.4k
Marpでロゴ挿入
Note用記事として、Marpを使用してロゴを挿入
KIYO
May 16, 2025
Tweet
Share
More Decks by KIYO
See All by KIYO
251109_GASでのスライド(Note記事用)
kiyo_speakerdeck
0
87
まじんv3×note記事
kiyo_speakerdeck
0
87
Slidevのデフォルトslides.md
kiyo_speakerdeck
0
150
note記事:Markdownのスライド作成:Slidev その1
kiyo_speakerdeck
0
140
Pythonでやってみた19-README.md
kiyo_speakerdeck
0
410
Marpでロゴ挿入2
kiyo_speakerdeck
0
1.3k
テスト@2025年5月10日
kiyo_speakerdeck
0
17
250511_note_test(marp)
kiyo_speakerdeck
0
2.3k
Featured
See All Featured
Site-Speed That Sticks
csswizardry
13
1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
How STYLIGHT went responsive
nonsquared
100
6k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
390
How GitHub (no longer) Works
holman
316
140k
The Cult of Friendly URLs
andyhume
79
6.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.2k
Done Done
chrislema
186
16k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Embracing the Ebb and Flow
colly
88
4.9k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Transcript
Marp スライドのロゴ表示 ロゴ配置方法 ヘッダー右上にロゴを配置するには、 ::after 疑似要素とCSS を利用 します。
実装コードとイメージ 実装イメージ: ヘッダーにロゴが表示されます。 (通常、ヘッダーにテキストがある場合はそれと共に表示されます) /* ヘッダー右上にロゴを配置 */ header::after { content:
""; display: block; position: absolute; right: 25px; top: 10px; width: 250px; height: 80px; background: url("https://raw.githubusercontent.com/marp-team/marp/master/marp.png") no-repeat center; background-size: contain; }
CSS 解説とまとめ header::after : ロゴ表示用のコンテナを生成。 position: absolute; right: 25px; top:
10px; : 右上に配置。 width: 250px; height: 80px; : ロゴサイズを指定。 background : ロゴ画像を指定し、表示方法を調整。 url(...) : 画像パス(今回はMarp チームのロゴURL ) 。 no-repeat center : 画像を中央に1 つだけ表示。 background-size: contain; : アスペクト比を保ちつつフィット。