rewrite my whole css and html but make my footer look much more professional and better…
- User
rewrite my whole css and html but make my footer look much more professional and better in terms of layout, also please do not use curly quotation marks but use these (")
html and css:
// Function to open modal function openModal() { modal.style.display = ‘block’; }
// Function to close modal function closeModal() { modal.style.display = ‘none’; }
// Function to close modal if outside click function outsideClick(e) { if (e.target == modal) { modal.style.display = ‘none’; } }
css: html, body, h1, h2, h3, h4, p, a, ul, li, div, main, header, section, footer, img { margin: 0; padding: 0; border: 0; font-size: 100%; font-family: inherit; vertical-align: baseline; box-sizing: border-box; }
body { font-family: 'Cabin', sans-serif; line-height: 1.5; color: #333; width: 100%; margin: 0; padding: 0; min-height: 100vh; flex-direction: column; display: flex; background-image: url("../assets/images/cover.jpg"); background-size: cover; } header { background: #00000000; padding: 0.5rem 2rem; text-align: center; color: #32612D; font-size: 1.2rem; } main{ flex-grow: 1; }
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { width: 50px; height: auto; margin-right: 1rem; }
h1 { flex-grow: 1; text-align: left; }
nav ul { display: inline; list-style: none; }
nav ul li { display: inline; margin-left: 1rem; }
nav ul li a { text-decoration: none; color: #32612D; }
nav ul li a:hover { color: #000000; }
@media screen and (max-width: 768px) { .nav-container { flex-direction: column; } h1 { margin-bottom: 1rem; } } nav ul li a { position: relative; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: #000; transform: scaleX(0); transition: transform 0.3s; }
nav ul li a:hover::after { transform: scaleX(1); }
.slideshow-container { width: 100%; position: relative; margin: 1rem 0; }
.mySlides { display: none; }
.mySlides img { width: 100%; height: auto; }
.special-offers-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.special-offer { width: 200px; padding: 1rem; text-align: center; margin: 1rem; background-color: #ADC3AB; border-radius: 5px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }
.special-offer:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); transform: translateY(-5px); }
.special-offer img { width: 100%; height: auto; margin-bottom: 0.5rem; border-radius: 5px; }
.modal { display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1; overflow: auto; align-items: center; }
- Assistant
- User
you seem to have an error, which is that you are output the wrong type of quotations, you output (’) and (”) instead of (') and (")
- Assistant
Apologies for the error. Here is the corrected part of the HTML file with the corrected quotation marks:
<script> // Get modal element var modal = document.getElementById('modal'); // Get open model button var modalBtn = document.getElementById('modalBtn'); // Get close button var closeBtn = document.getElementsByClassName('close')[0]; // Listen for open click modalBtn.addEventListener('click', openModal); // Listen for close click closeBtn.addEventListener('click', closeModal); // Listen for outside click window.addEventListener('click', outsideClick); // Function to open modal function openModal() { modal.style.display = 'block'; } // Function to close modal function closeModal() { modal.style.display = 'none'; } // Function to close modal if outside click function outsideClick(e) { if (e.target == modal) { modal.style.display = 'none'; } } </script>