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でロゴ挿入
Search
KIYO
May 16, 2025
0
740
Marpでロゴ挿入
Note用記事として、Marpを使用してロゴを挿入
KIYO
May 16, 2025
Tweet
Share
More Decks by KIYO
See All by KIYO
Slidevのデフォルトslides.md
kiyo_speakerdeck
0
49
note記事:Markdownのスライド作成:Slidev その1
kiyo_speakerdeck
0
43
Pythonでやってみた19-README.md
kiyo_speakerdeck
0
250
Marpでロゴ挿入2
kiyo_speakerdeck
0
650
テスト@2025年5月10日
kiyo_speakerdeck
0
16
250511_note_test(marp)
kiyo_speakerdeck
0
1.2k
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
303
21k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
GraphQLとの向き合い方2022年版
quramy
49
14k
BBQ
matthewcrist
89
9.8k
Gamification - CAS2011
davidbonilla
81
5.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Side Projects
sachag
455
43k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.6k
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; : アスペクト比を保ちつつフィット。