Hi,
I have a styling problem and I know that is beyond your scope but I am hoping the someone might be able to identify a clue to a CSS fix for how the following script commands a 4 column grid to adjust to a single column on small devices. The problem is, the single column on tablet portrait view is correct but when the tablet is turned landscape, the display should adjust to 2 columns.
I would be grateful for ANY information on this. Thank you.
The CSS currently in use for the responsive 4 column grid display:
table {
width: 100%;
border-collapse: collapse;
}
@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
/* Force table to not be like tables anymore */
table, table thead, table tbody, table th, table td, table tr {
display: block;
}
/* Hide table headers (but not display: none;, for accessibility) */
table thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
table td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
width: 100%;
}
}
ul{
display: inline-block;
}
ul li{
display: inline;
list-style-type: none;
}
ul {
display: inline-block;
}
ul a {
color: black;
float: left;
padding: 8px 14px;
text-decoration: none;
}
.wpv-pagination-nav-links-container.js-wpv-pagination-nav-links-container .wpv_page_current.wpv-pagination-nav-links-item-current {
background-color: #b7b7b7;
color: white;
}
}
ul a:hover:not(.active) {background-color: #ddd;}
.wpv-pagination-nav-links-container.js-wpv-pagination-nav-links-container {
display: block;
}
.wpv-pagination-nav-links-container.js-wpv-pagination-nav-links-container li {
display: inline-block;
overflow: hidden;
text-align: left;
}
.wpv-pagination-nav-links-container.js-wpv-pagination-nav-links-container li a {
float: none;
padding: 6px 8px;
}
.wpv-pagination-nav-links-container.js-wpv-pagination-nav-links-container li span {
float: none;
padding: 6px 6px;
}
ul.pagination {
display: block;
overflow: hidden;
padding: 0px;
}
ul.pagination li.page-item {
float: left;
width: 50%;
}
ul.pagination li.page-item span,
ul.pagination li.page-item a {
padding: 8px 12px;
display: block;
float: none;
}
ul.pagination li.page-item .wpv-filter-previous-link {
text-align: left;
}
ul.pagination li.page-item .wpv-filter-next-link {
text-align: right;
}
.show-on-mobile {
display: none !important;
}
@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
.hide-on-mobile {
display: none !important;
}
.show-on-mobile {
display: block !important;
}
}