Comments (2)
It's a very common CSS pitfall: text-align: center
only centers the text inside the table cells. To center the table itself within its container (slide), you can use the following CSS:
<style scoped>
table {
max-width: fit-content;
margin-left: auto;
margin-right: auto;
}
</style>
The following article is very useful for all about centering with CSS:
How To Center a Div (https://www.joshwcomeau.com/css/center-a-div/)
from marpit.
It's a very common CSS pitfall:
text-align: center
only centers the text inside the table cells. To center the table itself within its container (slide), you can use the following CSS:<style scoped> table { max-width: fit-content; margin-left: auto; margin-right: auto; } </style>
The following article is very useful for all about centering with CSS: How To Center a Div (https://www.joshwcomeau.com/css/center-a-div/)
Thanks alot for your prompt answer and the links.
And for marp!!
from marpit.
Related Issues (20)
- Node.js 18 support
- Implement previews for every pull request HOT 1
- different font for different language HOT 2
- the footnote in markdown syntax[^1] does not working properly HOT 1
- Basic Usage Steps HOT 3
- Support multiple locales in the docs HOT 1
- CSS container query support (`@container`) HOT 2
- Allow for fragmented list from a directive HOT 4
- Unexpected behavior of Marp when importing css in a scoped style HOT 1
- `paginate: hold` at the first page renders page number 0
- Alternative image attribute syntax HOT 2
- No alt text for 'bg' images HOT 3
- [FEATURE REQUEST]: Adding Stylesheet Directly in Markdown Via URL HOT 1
- Setting background without fill HOT 1
- Line continuations are not endorsed as paragraphs HOT 1
- Allow setting section id from markdown HOT 3
- Render non-inline svg files HOT 2
- ESM build
- Support for CSS nesting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marpit.