Use auto and min or max width like this.
Mat table column width auto.
And for every column add this with the percentage and min width you need mat column colum name flex.
Add this style to alter your column separately.
Create a table and specify that the first column has a width of four inches.
Mat table wrapper mat table min width.
Custom width on material data table columns.
Break all table text align.
Slide1 add slides title and content.
To apply custom width to columns we can create helper classes with width provided in pixes as shown below w 75 width.
Mat header row width.
Set table column width.
Setting custom width for 1st and 5th column mat cell nth child 1 mat header cell nth child 1 flex.
Mat row width.
Second option then you.
0 0 10 the remaining width will be divided equally among remaining cells.
Mat row width.
0 0 25 important.
You can create any number of these custom width classes according to your requirements.
Import mlreportgen ppt slidesfile mycolwidth pptx slides presentation slidesfile.
With md table the columns are all set to the same width divided into the total table width except for cells that are too wide and then it extends the cell and pushes the other cells in that row to the right.
When i use a regular table with basically no css the columns auto format to fit the widest td element.
Setting different width for column in style sheet by overriding the both cell and header cell.
Mat header row width.
Mat table wrapper mat table min width.
Adds a hyphen where the word breaks if supported no blink.