Skip to content

How to only do CSS styling for one slide? #440

Answered by yhatt
pxlmastrXD asked this question in Q&A
Discussion options

You must be logged in to vote

<style> tag is working same as HTML, setting styles for the whole of the document.

Try using <style scoped> instead. Marp provides the support of scoped attribute for <style> to limit the effect of styles to the current slide.
https://marpit.marp.app/theme-css?id=scoped-style.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pxlmastrXD
Comment options

Answer selected by pxlmastrXD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants