'Aligning the table to te center of the page in Markdown
I want to align the table to the center of the page, how ever the <div align="center" <table> </div>
function does not work.
How would I be able to achieve this in markdown?
Code:
# <center>Lesson 1 Calculus 310</center>
<div align="center">
| Name | General Formula | Formula |
| --- | ----------- | ----------- |
| Derivative | $$\frac{d}{dx} (f(x)^n)$$| $$ nx^{(n-1)}$$|
| Anti-derivative | $$\int_a^b f(x)^n \,dx$$ | $$\frac{x^{n+1}}{n+1} + c$$|
</div>
Output:
Solution 1:[1]
style="margin-left: auto;margin-right: auto"
Give this one to your table and your table's position will be in the center.
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ridham Golakiya |