anki-enhance-main-window
anki-enhance-main-window copied to clipboard
Center the Body of Each column
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:
TIA!
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.