Windframe
Build Tailwind UIs that actually look good!
.jpg)
The bg-fixed class sets the background image of an element to remain fixed in place, even when the page is scrolled.
The bg-fixed class sets the background image of an element to remain fixed in place, even when the page is scrolled.
<div class="bg-fixed bg-cover bg-blue-500 h-48 w-full text-white"> Fixed Background</div>Fixed Background
Add the bg-fixed class directly to your HTML element:
<div class="bg-fixed"> <!-- Your content here --></div>Use Tailwind's responsive prefixes to apply bg-fixed at specific breakpoints:
<div class="sm:bg-fixed md:bg-fixed lg:bg-fixed"> Responsive element</div>sm:bg-fixed — applies from 640px and upmd:bg-fixed — applies from 768px and uplg:bg-fixed — applies from 1024px and upYou can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.
Windframe is an AI visual editor for rapidly building stunning web UIs & websites
