diff --git a/html/search.js b/html/search.js
index 59ac83573b7..76ff88bce30 100644
--- a/html/search.js
+++ b/html/search.js
@@ -23,7 +23,7 @@ function updateSearch() {
}
if (found == 0) row.style.display = 'none';
else {
- row.style.display = 'block';
+ row.style.display = 'table-row';
row.className = alt_style;
if (alt_style == 'alt') alt_style = 'norm';
else alt_style = 'alt';