1
Does anyone know how I can align this table with the white part of the background? I’m using materialize.
Table code
<div class="row">
<div class="col s12 m12 l12">
<div class="box">
<div class="box-content">
<table class="bordered highlight centered">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>E-mail</th>
<th>Item Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Alvin</td>
<td>[email protected]</td>
<td>$0.87</td>
</tr>
<tr>
<td>2</td>
<td>Alan</td>
<td>[email protected]</td>
<td>$3.76</td>
</tr>
<tr>
<td>3</td>
<td>Jonathan</td>
<td>[email protected]</td>
<td>$7.00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
My css
.box {
padding: 0px;
display: block;
position: relative;
margin: 25px 0;
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
border-radius: 4px;
color: rgba(0, 0, 0, 0.87);
background: #fff;
}
.box-content, .box-footer{
padding: 15px 20px;
}
materialize is responsive. This must be happening for some other code in your CSS or HTML. It gets complicated to answer only by the code provided.
– Sam
Hello, really you are right, I updated the post by putting the code of my css. I hope it helps.
– user102054
You have already tested in 320 pixel resolution?
– Sam
It is because the code you posted does not appear the edit and delete buttons
– Sam
Yes, this code I posted is from another table that this with the same problem, I thought so would be better to understand without much unnecessary code, I will update the photo ...
– user102054
I’ve included a CSS in the response that can be useful and prevent long emails from forcing the table width. Abs!
– Sam