/* CSS to improve iframe appearance */ #contentFrame { width: 100%; /* Full width of the container */ height: 800px; /* Increased height */ border: none; /* Removes the border */ } /* Optional: Additional styles to make the iframe blend in */ body { margin: 0; padding: 0; font-family: Arial, sans-serif; /* Example font */ } // JavaScript to further manipulate the iframe content window.addEventListener('load', function() { var iframe = document.getElementById('contentFrame'); try { var innerDoc = iframe.contentDocument || iframe.contentWindow.document; var header = innerDoc.querySelector('.header'); // Replace with actual header selector var footer = innerDoc.querySelector('.footer'); // Replace with actual footer selector if (header) header.style.display = 'none'; if (footer) footer.style.display = 'none'; } catch(e) { console.error("Error accessing iframe content: ", e); } });