diff --git a/filter.js b/filter.js index 147564c..74e964a 100644 --- a/filter.js +++ b/filter.js @@ -4,7 +4,11 @@ document.addEventListener('DOMContentLoaded', function () { // Add event listener to each checkbox checkboxes.forEach(function (checkbox) { - checkbox.addEventListener('change', applyFilters); + checkbox.addEventListener('change', function (event) { + applyFilters(); + event.preventDefault(); + return false; + }); }); // Initial display of all places diff --git a/styles.css b/styles.css index dbd03f0..ee3eb28 100644 --- a/styles.css +++ b/styles.css @@ -90,7 +90,7 @@ nav a:hover { .place-container { display: flex; flex-wrap: wrap; /* Allow wrapping to the next line when there's not enough space */ - justify-content: right; /* Center the boxes horizontally */ + margin-left: 350px; margin-top: -400px; }