anki-enhance-main-window icon indicating copy to clipboard operation
anki-enhance-main-window copied to clipboard

Center the Body of Each column

Open sweetgrl97 opened this issue 3 years ago • 1 comments

Thank you forthis add-on! It is amazing!

Very minor issue! I was able to change the code a bit to center the headers, but is there a way to center the body/the numbers within the column?

This is what my page currently looks like: image

TIA!

sweetgrl97 avatar Mar 13 '21 13:03 sweetgrl97

Not sure whether this is the best way to do it, but I was able to center the body within the columns by directly modifying the CSS (Tools > Add-ons > Enhance main window > View Files). In the htmlAndCss.py file, change the aligns in def number_cell to align = 'center' - there are two changes to make, for class='number_cell' and class = 'tooltip number_cell' (they're right by each other).

I was able to make sure the headers were centered by going to the defaultcss.css file and under th.count, adding padding-right: 15px; (or equal to padding-left if you adjust the padding values) and text-align: center within the curly brackets.

wpneuro avatar Mar 21 '21 10:03 wpneuro