<style>
#main-table {
margin: 20px 0px;
table-layout: fixed;
overflow-wrap: break-word;
word-break: break-word;
background-color: #DCEEFC;
}
#main-table thead {
background-color: #336699;
}
#main-table th {
color: #fff;
}
#th-delete {
width: 1rem;
}
#th-date {
width: 9.1rem;
}
#th-type{
width: 100px;
}
#th-name {
width: 15%;
}
#th-message {
width: 40%;
}
#th-photo1 {
width: 130px;
}
#th-photo2 {
width: 130px;
}
#th-video {
width: 130px;
}
#main-table tbody tr:nth-child(odd) {
background-color: #fff;
}
.message {
max-height: 5.0rem;
}
.message-expand {
max-height: none;
}
@media screen and (max-width: 1024px) {
#main-table, #main-table thead, #main-table tbody, #main-table th, #main-table td, #main-table tr {
display: block;
}
#main-table thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
#main-table td {
border: none;
position: relative;
padding-left: 50%;
}
#main-table td:before {
position: absolute;
top: 6px;
left: 12px;
padding-right: 10px;
white-space: nowrap;
}
.mobile-th-content {
font-weight: 700;
}
#main-table td:nth-of-type(1):before { content: “Delete?”; font-weight: 700; }
#main-table td:nth-of-type(2):before { content: “Date”; font-weight: 700; }
#main-table td:nth-of-type(3):before { content: “Type”; font-weight: 700; }
#main-table td:nth-of-type(4):before { content: “Title”; font-weight: 700; }
#main-table td:nth-of-type(5):before { content: “Description”; font-weight: 700; }
#main-table td:nth-of-type(6):before { content: “Photo1”; font-weight: 700; }
#main-table td:nth-of-type(7):before { content: “Photo2”; font-weight: 700; }
#main-table td:nth-of-type(7):before { content: “Video”; font-weight: 700; }
}
.entry-phone:before {
font-family: ‘ETmodules’;
content: “e090”;
margin-right: 8px;
}
.entry-email:before {
font-family: ‘ETmodules’;
content: “e076”;
margin-right: 8px;
}
</style>
<script>
function toggleMessage(messageBoxId, showMoreId) {
let messageBox = document.getElementById(messageBoxId);
let showMore = document.getElementById(showMoreId);
messageBox.classList.toggle(“message-expand”);
if (showMore.innerText === “Show more”)
showMore.innerText = “Show less”;
else if (showMore.innerText === “Show less”)
showMore.innerText = “Show more”;
}
function checkHide(messageBoxId, showMoreId) {
let messageBox = document.getElementById(messageBoxId);
let showMore = document.getElementById(showMoreId);
if (messageBox.scrollHeight <= messageBox.offsetHeight)
showMore.style.display = “none”;
}
</script>
<div>
<table id=”main-table”>
<thead>
<tr>
<th id=”th-delete”></th>
<th id=”th-date”>Date</th>
<th id=”th-type”>Type</th>
<th id=”th-name”>Name</th>
<th id=”th-message”>Message</th>
<th id=”th-photo1″>Photo 1</th>
<th id=”th-photo2″>Photo 2</th>
<th id=”th-video”>Video</th>
</tr>
</thead>
<tbody>
<tr><td style=’–v-responsive-table-label:”Delete?”;’><p></p></div></td><td style=’–v-responsive-table-label:”Date”;’>July 11, 2022</td><td style=’–v-responsive-table-label:”Type”;’>Projects</td><td style=’–v-responsive-table-label:”Title”;’>New Pond in Central Park</td>
<td>
<div id=”messageBox_22″ class=”message” style=”display: block; overflow: hidden;”>
we just did this for the mayer
</div><a id=”showMore_22″ onclick=”toggleMessage(‘messageBox_22’, ‘showMore_22’)” href=”javascript:;” style=”display: block; font-weight: 700; text-align: right;”>Show more</a><script>checkHide(‘messageBox_22’, ‘showMore_22’);</script>
</div>
</td>
<td style=’–v-responsive-table-label:”Photo 1″;’><div style=”display: flex; flex-direction: row; align-items: baseline;”>
<p>
<a href=https://basicirrigationservices.com/wp-content/uploads/formidable/4/Water-Damage-Square-01.jpg><img src=”https://basicirrigationservices.com/wp-content/uploads/formidable/4/Water-Damage-Square-01.jpg” height=”100″ style=”max-height: 100px;” alt=”File”></a></p>
</td><td style=’–v-responsive-table-label:”Photo 2″;’><div style=”display: flex; flex-direction: column;”>
<p><p>-</p>
</p>
</div></td><td style=’–v-responsive-table-label:”Video”;’><div style=”display: flex; flex-direction: row; align-items: baseline;”>
<p><p>-</p>
</p>
</div></td></tr>
</tbody></table>