-
Hello Team, How do I change to font-size in a MudDataGrid. Thx a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Any Idea? |
Beta Was this translation helpful? Give feedback.
-
Add this CSS:
Then add to
Only headers: https://try.mudblazor.com/snippet/wYQQuguhQNUcJCMK .875rem is default value for font-size. |
Beta Was this translation helpful? Give feedback.
-
Great! Works! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Add this CSS:
Then add to
MudDataGrid
:HeaderClass="my-class"
attribute to style only headers,RowClass="my-class"
attribute to style only data rows,Class="my-class"
attribute to style both headers and data rows.Only headers: https://try.mudblazor.com/snippet/wYQQuguhQNUcJCMK
Only data rows: https://try.mudblazor.com/snippet/mYmwuUahRckBEMyT
Both headers and data rows: https://try.mudblazor.com/snippet/wkwmEUaBnQELnqiJ
.875rem is default value for font-size.