How can I custom table responsive materialize?
This is a known issue with Materialize
. Here you find the reference to the problem.
This is the proposed solution on GitHub.
<thead>
<tr>
<th>Mon<br/> </th>
<th>Tue<br/> </th>
<th>Wed<br/> </th>
<th>Thr<br/> </th>
<th>Fri<br/> </th>
<th>Sat<br/> </th>
<th>Sun<br/> </th>
</tr>
</thead>
Here the working example on JSFiddle
But to works properly you can't use too many styles inside the cells, otherwise the heights won't be respected.
Adjusting td width on small screens using responsive table feature in materialize css
Your materialize.min.css add this media query:
@media only screen and (max-width: 992px)
table.responsive-table tbody {
display: block;
width: auto;
position: relative;
overflow-x: auto;
white-space: nowrap;
}
The "white-space: nowrap" is your problem. You can overwrite this on tr/td:
tr td {
max-width: 300px;
white-space:normal;
}
Related Topics
Css: How to Select Parent's Sibling
Filter: Blur Not Working on Ms Edge
How to Add a 3Rd Level to My CSS Drop Down Menu
Element Opacity But Not Border
Ms Edge CSS Transition Flickering
Safari Page-Break-Inside:Avoid Not Working
How to Imitate the Look of the Outline and Label from Material-Ui's Outlined Textfield
Style Type="Text/Css" ... What Else Is There
Chrome Developer Tools: Inspect Prettified CSS
How to Extend a Class from a CSS File in SASS
What Is Appropriate Ordering of CSS Selector? Eg P.Class or .Class P
How to Use Pseudo-Elements (:After, :Before) Inside a Table Row
Vertical Margins Disappear When Parent Is Set to Overflow:Visible