Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Split Logo & CTA Footer</title> <style> :root { --footer-bg: #1a1a1a; --footer-text-color: #a0a0a0; --footer-heading-color: #ffffff; --cta-button-bg: #007bff; --cta-button-text: #ffffff; --cta-button-hover-bg: #0056b3; --footer-border-color: #333333; } /* Basic body styles for demonstration */ body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 100vh; } .main-content { padding: 2rem; } /* FOOTER STYLES START HERE */ .footer-split { background-color: var(--footer-bg); } .footer-split__main { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; border-bottom: 1px solid var(--footer-border-color); /* Mobile-first: stack and center */ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; } .footer-split__brand-logo { width: 160px; fill: var(--footer-heading-color); } .footer-split__cta-heading { color: var(--footer-heading-color); font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem 0; } .footer-split__cta-button { display: inline-block; background-color: var(--cta-button-bg); color: var(--cta-button-text); font-size: 1rem; font-weight: 600; text-decoration: none; padding: 0.875rem 2rem; border-radius: 50px; transition: background-color 0.2s ease-in-out, transform 0.2s ease; } .footer-split__cta-button:hover { background-color: var(--cta-button-hover-bg); transform: translateY(-2px); } .footer-split__bottom-bar { max-width: 1200px; margin: 0 auto; padding: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--footer-text-color); } /* Media query for tablets and larger */ @media (min-width: 768px) { .footer-split__main { flex-direction: row; justify-content: space-between; text-align: left; padding-top: 4rem; padding-bottom: 4rem; } .footer-split__bottom-bar { text-align: left; } } </style> </head> <body> <main class="main-content"> <h1>Split Logo & CTA Footer</h1> <p>This area represents the main content of your website.</p> </main> <!-- ================================================================== SPLIT LOGO & CTA FOOTER ================================================================== --> <footer class="footer-split" role="contentinfo"> <div class="footer-split__main"> <div class="footer-split__brand"> <a href="#" aria-label="Agency Homepage"> <svg class="footer-split__brand-logo" viewBox="0 0 150 25" xmlns="http://www.w3.org/2000/svg" aria-labelledby="logoSplitTitle"> <title id="logoSplitTitle">AGENCY.IO</title> <text x="0" y="20" font-family="Arial, sans-serif" font-size="24" font-weight="bold">AGENCY.IO</text> </svg> </a> </div> <div class="footer-split__cta"> <h2 class="footer-split__cta-heading">Have a project in mind?</h2> <a href="#" class="footer-split__cta-button" role="button">Get in Touch</a> </div> </div> <div class="footer-split__bottom-bar"> <p>© 2024 Agency.IO. All Rights Reserved.</p> </div> </footer> </body> </html>