© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
11 replies
bwurtz999

Customizing Section Classes

Hello - does anyone know how to remove the
gap-6
gap-6
from the default
Section
Section
view? I've tried
->extraAttributes(['class' => 'gap-0'])
->extraAttributes(['class' => 'gap-0'])
but it has no effect. The
gap-6
gap-6
overrides it. I've tried using
!important
!important
but that didn't work either. I'm trying to avoid publishing the view and removing it completely - I only need to remove the gap from one specific section. Thank you!
Screenshot_2024-09-05_at_4.18.59_PM.png
Solution
So just target the appropriate Div in a custom theme. Use extraAttributes to add a class then target the class in css with a custom theme.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Customizing page
FilamentFFilament / ❓┊help
2y ago
Customizing Table Cells
FilamentFFilament / ❓┊help
17mo ago
Customizing navigation items
FilamentFFilament / ❓┊help
17mo ago
customizing user menu
FilamentFFilament / ❓┊help
3y ago