Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center the Body of Each column #105

Open
sweetgrl97 opened this issue Mar 13, 2021 · 1 comment
Open

Center the Body of Each column #105

sweetgrl97 opened this issue Mar 13, 2021 · 1 comment

Comments

@sweetgrl97
Copy link

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!

@wpneuro
Copy link

wpneuro commented Mar 21, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants