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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
KIYO
May 16, 2025
0
1.5k
Marpでロゴ挿入2
Note記事用:
前記事にフロントマターから theme: gaia を削除し、 タグ内に header 要素自体にスタイルを追加しました。
KIYO
May 16, 2025
Tweet
Share
More Decks by KIYO
See All by KIYO
251109_GASでのスライド(Note記事用)
kiyo_speakerdeck
0
130
まじんv3×note記事
kiyo_speakerdeck
0
130
Slidevのデフォルトslides.md
kiyo_speakerdeck
0
190
note記事:Markdownのスライド作成:Slidev その1
kiyo_speakerdeck
0
180
Pythonでやってみた19-README.md
kiyo_speakerdeck
0
530
Marpでロゴ挿入
kiyo_speakerdeck
0
1.6k
テスト@2025年5月10日
kiyo_speakerdeck
0
17
250511_note_test(marp)
kiyo_speakerdeck
0
2.6k
Featured
See All Featured
Speed Design
sergeychernyshev
33
1.5k
Practical Orchestrator
shlominoach
191
11k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Docker and Python
trallard
47
3.7k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Are puppies a ranking factor?
jonoalderson
1
2.7k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
780
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; : アスペクト比を保ちつつフィット。