Anki Desktop: aligning card content at the center of the screen


Thanks for reading this.

OS: MacOS, 11.5.2
Anki: 2.1.43

Currently, my most commonly used note type displays content like this:

I’d like it to display content centered, like this:

Is there a way to do this?

Thank you.

I’m still learning HTML and CSS, but I think the content is centered by default:


What you may be looking for are the left and right margin size:



1 Like

Thank you. I’m actually looking for up and down margin size. I want to be centered not just from left to right, but also from up and down.

margin: 15%;

1 Like

Got it. Is there a “solo” ‘margin’ variable to set to 15%?

margin: 15%; applies to all the margins at the same time.

Got it. Should I delete the ‘margin-left’ and ‘margin-right’ terms also?

If you’re using only one value, there is no need for right and left values.