@Beats-Ayush
Posted
- You can center the card by
- Using
margin: 2.5rem auto;
. This is shorthand. 2.5rem is themargin-top
andmargin-bottom
. - Using absolute positioning.
position: absolute;
left:50%;
transform: translateX(-50%);
- I think the footnote is fine its place. No such biggie. If you don't want it wrapping, give it a
min-width
.
Search on stackOverflow and MDN for these queries. They have explanations in great detail.
Marked as helpful
@njorogejeff
Posted
Thank you @Beats-Ayush. I used absolute positioning to center the footer and it worked! For the card component, I used CSS Flexbox to center it within the page. Though I don't understand much on the 'transform' property, I will research and learn more about it.