I can get the table to resize but when I view in on mobile the text breaks in the middle of the word and is unreadable. I was wondering if there was a way to make the table stay horizontal on a computer but make itself vertical when viewed on mobile.
Here is what I have:
table {
width: 100%;
table-layout: fixed;
border: 1;
border-color: DEDEDE;
text-align: left;
}
table td {
word-wrap: break-word;
font-size: 100%;
}
.iFinePrint {
font-size: 12px;
text-align: center;
}
<h2>iPhone Repair</h2>
<table rules="cols" frame="vsides">
<tr>
<td>
iPhone 4
<ul>
<li>Cracked Screen</li>
<li>Battery Replacement</li>
<li>Rear Panel</li>
</ul>
</td>
<td>
iPhone 4s
<ul>
<li>Cracked Screen</li>
<li>Battery Replacement</li>
<li>Rear Panel</li>
</ul>
</td>
<td>
iPhone 5
<ul>
<li>Cracked Screen</li>
<li>Battery Replacement</li>
</ul>
</td>
<td>
iPhone 5s
<ul>
<li>Cracked Screen</li>
<li>Battery Replacement</li>
</ul>
</td>
<td>
iPhone 5c
<ul>
<li>Cracked Screen</li>
<li>Battery Replacement</li>
</ul>
</td>
</tr>
</table>
<p class="iFinePrint">*Prices depend on the work that is being done. If you would like more information you may fill out the contact form, email us directly, or call the number provided.</p>
As you can see the table remains 100% width but the text just gets broken. Thanks for the help.