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

add data-numeric attribute to html table cells #1941

Open
2 tasks done
kbvernon opened this issue Jan 10, 2025 · 0 comments
Open
2 tasks done

add data-numeric attribute to html table cells #1941

kbvernon opened this issue Jan 10, 2025 · 0 comments
Assignees

Comments

@kbvernon
Copy link

Prework

Proposal

Maybe consider adding a data-numeric attribute to table cells if is.numeric(x):

<td data-numeric></td>

so we could then target those columns in CSS with specific formatting:

td[data-numeric] {
  text-align: right;
}

This would be particularly useful in situations where people want the bare HTML table with no CSS, as requested in #816.

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

No branches or pull requests

2 participants