LayX
Docs Components Download Templates Blog
Download
Getting started
Introduction Installation Quick Start CLI
Core Concepts
Overview
Customize
Customize
Layout System
Breakpoints Container Component Layout Component
Main
Base Typography
Components
Accordion Alert Breadcrumb Button Card Carousel Chart Dialog Draggable Form Footer Navbar Pagination Popover Sheet Section Tab Tooltip Window
Helpers
Flex and Grid Layout
Utilities
Border Color Display Flex Grid Height Margin Opacity Padding Position Shadow Width Z-index
Others
Background Dynamic Render Icon PWA Partial Render Scroll Driven Animation Smooth Scroll Syntax Highlighter Theme View Transition
About
Contributing License
Footer

The Footer component is a versatile, responsive section at the bottom of the page that typically contains important links, branding, and other relevant information.

Examples

Below is an example of a basic Footer component:

<footer class="footer__section"> <container class="footer__container"> <layout class="footer__layout gap-x gap-y-3"> <div class="x-12 sub-x footer__start"></div> <div class="x-12 sub-x footer__middle"> <div class="x-12 x-lg-4 brand"> <h3>Logo</h3> <p>Some brand text.</p> </div> <div class="x-12 x-lg-8 link__block"> <div class="link__wrapper"> <h5 class="link__hading">Section</h5> <a class="link" href="">Home</a> <a class="link" href="">Features</a> <a class="link" href="">Pricing</a> <a class="link" href="">FAQs</a> <a class="link" href="">About</a> </div> <div class="link__wrapper"> <h5 class="link__hading">Section</h5> <a class="link" href="">Home</a> <a class="link" href="">Features</a> <a class="link" href="">Pricing</a> <a class="link" href="">FAQs</a> <a class="link" href="">About</a> </div> <div class="link__wrapper"> <h5 class="link__hading">Section</h5> <a class="link" href="">Home</a> <a class="link" href="">Features</a> <a class="link" href="">Pricing</a> <a class="link" href="">FAQs</a> <a class="link" href="">About</a> </div> </div> </div> <div class="x-12 sub-x footer__end"> <span>© 2025 Company, Inc</span> <div class="legal"> <a href="">Terms</a> | <a href="">Privacy</a> </div> </div> </layout> </container> </footer>
Useful Info

Key features and customization options for the Footer component:

  • The footer layout can be customized using CSS variables, such as:
    • --padding-x and --padding-y: Controls the padding inside the footer.
    • --bg: Sets the background color of the footer.
  • Use the .footer__content class for the main footer structure and .footer__nav for navigation links.
  • To make the footer stick to the bottom of the viewport, apply a flexbox layout with min-height and flex-grow on the page wrapper.
  • Ensure semantic HTML by using the <footer> tag for better accessibility and SEO.
See Example

LayX

A modern CSS framework that makes building websites faster, easier, and more flexible.

Main
Docs Components Examples Download
About
Approach Features Templates Blog
Other
Sponsor Contributing Issues License
© 2025 LayX MIT License