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

Ibiza Daily News: Your Guide to Ibiza, News, Lifestyle & the Best of the Island

Discover what’s happening in Ibiza — from the latest news and events to beaches, restaurants, nightlife, culture and the best things to do.

How Much Does It Cost to Open a Business in Ibiza Town? Rents Reach €60,000 a Year
File photo of the La Marina neighborhood in Ibiza. | Vicent Marí

Party Calendar Events

Explore historic Ibiza Town, relax on the golden sands of Playa d’en Bossa, and discover the tranquil beauty of Cala Comte. Experience the perfect blend of town charm and beach bliss in this Mediterranean paradise.

Accommodation

Ibiza offers numerous hotels and resorts that provide amenities, exquisite dining options, spa facilities, and breathtaking views. These accommodations are often located near popular beach areas and cater to guests seeking a great experiences.