Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Marpでロゴ挿入2
Search
KIYO
May 16, 2025
0
200
Marpでロゴ挿入2
Note記事用:
前記事にフロントマターから theme: gaia を削除し、 タグ内に header 要素自体にスタイルを追加しました。
KIYO
May 16, 2025
Tweet
Share
More Decks by KIYO
See All by KIYO
Pythonでやってみた19-README.md
kiyo_speakerdeck
0
130
Marpでロゴ挿入
kiyo_speakerdeck
0
250
テスト@2025年5月10日
kiyo_speakerdeck
0
16
250511_note_test(marp)
kiyo_speakerdeck
0
400
Featured
See All Featured
Music & Morning Musume
bryan
46
6.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
54k
It's Worth the Effort
3n
185
28k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
750
Into the Great Unknown - MozCon
thekraken
40
1.9k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
Balancing Empowerment & Direction
lara
1
480
Testing 201, or: Great Expectations
jmmastey
43
7.6k
The Language of Interfaces
destraynor
158
25k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
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; : アスペクト比を保ちつつフィット。