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);
});

a decade by van

Living and travelling Europe in a DIY campervan

I converted an old van into my fully self contained off-grid home on wheels. This is what happened...

I am a button
26+
Countries lived & travelled
47k+
Miles travelled
10+
Years in a van
100K+
Saved on rent
Life on the road

Vanlife stories and adventures

Join me on my Vanlife journey as I live and travel in my self-built home on wheels…

The build

Take a tour of my van

Welcome to my van-home. Let me show you around...

  • Base· LDV Convoy 2003
    · 2.4 Diesel LWB
  • Power· 270W solar / 230Ah
    · Mains power inside
  • Heat· Propex space heater
    · Full insulation/ventilation
  • Build time· 3 months living space
    · 2 months mechanics
See more of the van
Guides

Living the vanlife

I share my adventures, breakdowns, problems and solutions whilst living and travelling in a van.

Where I've been

See the journey

Explore my journey so far. Every mile travelled, every free camping spot.

  • 30 countries visited
  • Currently: Spain
  • Next up: UK
Open the full map
sorted by comment count

Popular posts

View all popular posts
sorted by comment count

Van conversion

View all Van conversion posts
rebuilding my campervan after welding repairs

Rebuilding my van-home

View post
The van's builder leaning on the open rear doors, mug in hand, grinning.
Behind the wheel

Welcome to my daydream

I quit my job, converted an old van into my travelling home and set off travelling. Things evolved way beyond what I ever imagined. I continued to follow the threads whilst documenting the journey on this blog...

More about VandogTraveller