Articles on: Advanced Topics

Making the directory table layout responsive

Multiple columns in each result can cause the user to side-scroll when viewing search results that have more width than the device can accommodate.  To address this issue, you can update your interface as follows to include responsive behavior.  The instructions vary based on whether you are using our Spreadsheet Layout, or you have simply included additional results columns as found under Layout Settings > Columns.


Spreadsheet Layout


  1. Update the Advanced > Footer setting with the following code:
  2. Update the Advanced > Header setting with the following code:
  3. Update the Style & Color > CSS setting to include the following code:@media screen and (max-width: 800px) { .stacktable.large-only { display: none !important; } .stacktable.small-only { display: table; } .stacktable.small-only td.title { text-align: left; };}@media screen and (min-width: 801px) { .stacktable.large-only { display: table; } .stacktable.small-only { display: none !important; }}


This will cause the layout to responsively adjust and sizes lower than 800 pixels wide to a row-based layout.


Layout Columns


Implement the instructions above for the spreadsheet layout, but include this additional CSS


.metalocator .metalocator_results_table.stacktable th{   
font-weight:normal;
text-align:left;
}

.metalocator .metalocator_results_table.stacktable th{
font-weight:normal;
text-align:left;
}

.metalocator .stacktable .st-key{
display:none;
}
.metalocator .stacktable .ml_empty{
display:none
}

.metalocator .stacktable td {
padding: none;
}

Updated on: 12/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!