function updateHeaderHeight() {
        // Get the height of #brx-header
        const headerHeight = document.querySelector('#brx-header').offsetHeight;
          
        // Store the height in the CSS custom property --header-height
        document.documentElement.style.setProperty('--brxw-header-height', headerHeight + 'px');
    }

    // Execute the function as soon as the document is ready
    document.addEventListener('DOMContentLoaded', function() {
        updateHeaderHeight();  // Initial update of header height when the document is ready

        // Update the header height on window resize and orientation change
        window.addEventListener('resize', updateHeaderHeight);
        window.addEventListener('orientationchange', updateHeaderHeight);
});

Where to free-camp in Barcelona

We’ve free-camped pretty much every major city in Spain but the last and by far the most challenging city to drive around and free-camp was Barcelona.

Having spent a full afternoon driving around the city, beach and port to look for parking we decided that free-camping in the actual city is near to impossible.

We ended up finding a good place to park (for free) near the Olympic stadium on Montjuic park, right opposite the swimming pool. We stayed here for 3 nights and even left the van unattended for 24 hours whilst we stayed with a friend across the city.

barcelona-parking

This is about 2.5km from La Rambla and a short walk to the nearest Metro station, Espanya.

Coordinates: N41 21.970 E2 09.209

Thanks for sharing!
Comment below
guest
2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments