CSS Settings
Beaver Builder automatically generates optimized CSS based on your settings:How CSS Generation Works
- Collects settings from modules and rows
- Generates CSS rules automatically
- Optimizes output for performance
- Organizes media queries for responsive design
CSS Rule Structure
CSS is organized by breakpoints:Responsive CSS Rules
Create responsive styles with the responsive rule helper:Typography Controls
Typography settings control text appearance:Typography Field
The typography field provides comprehensive text styling:Font Family
Choose from available fonts:- System Fonts
- Google Fonts
- Custom Fonts
Built-in system fonts:
- Arial
- Helvetica
- Times New Roman
- Georgia
- Verdana
Font Properties
Font Weight
Control text thickness:- 100: Thin
- 300: Light
- 400: Normal/Regular
- 500: Medium
- 600: Semi-Bold
- 700: Bold
- 900: Black
Available weights depend on the selected font family. Not all fonts support all weights.
Font Size
Set text size with units:- px: Fixed pixels
- em: Relative to parent
- rem: Relative to root
- vw: Viewport width percentage
- vh: Viewport height percentage
Line Height
Control spacing between lines:- Unitless: Relative to font size (recommended)
- px: Fixed pixel value
- em/rem: Relative units
Letter Spacing
Adjust space between characters:Text Transform
Change text capitalization:- None: Keep original
- Uppercase: ALL CAPS
- Lowercase: all lowercase
- Capitalize: First Letter Capitalized
Text Decoration
Add text styling:- None: No decoration
- Underline: Underlined text
- Overline: Line above text
- Line-through: Strikethrough text
Text Alignment
Align text horizontally:- Left: Left-aligned
- Center: Centered
- Right: Right-aligned
- Justify: Justified (full width)
Colors and Backgrounds
Comprehensive color and background controls:Color Picker
Advanced color selection:Color Properties
Common color properties:Background Types
Multiple background options:Solid Color
Single color background with optional opacity
Gradient
Linear or radial gradients with multiple color stops
Image
Background images with position, size, and repeat controls
Video
Background videos with fallback images
Background Color
Simple color backgrounds:Background Gradient
Advanced gradient backgrounds: Gradient Types:- Linear: Straight line gradient
- Radial: Circular gradient
- Multiple color stops
- Direction/angle
- Position (for radial)
Background Image
Image background settings: Image Options:- Source (Media Library or URL)
- Position (9 presets + custom)
- Repeat (none, tile, horizontal, vertical)
- Size (none, fit, fill)
- Attachment (scroll, fixed)
Multiple Backgrounds
Layer multiple backgrounds:Border and Shadow
Border and box shadow controls:Border Field
Comprehensive border styling:- Style
- Width
- Color
- Radius
Border style options:
- None
- Solid
- Dashed
- Dotted
- Double
- Groove
- Ridge
Border Generation
How borders are rendered:Box Shadow
Add depth with shadows:Spacing Controls
Margin and padding controls:Dimension Field
Control spacing on all sides:Margins
Outer spacing:- Top: Space above element
- Right: Space to the right
- Bottom: Space below element
- Left: Space to the left
- px (pixels)
- % (percentage)
- em (relative to font size)
- vw/vh (viewport units)
Padding
Inner spacing:- Top: Inner space from top
- Right: Inner space from right
- Bottom: Inner space from bottom
- Left: Inner space from left
Padding increases element size, while margins create space between elements.
Linked vs Unlinked
- Linked: All sides use same value
- Unlinked: Set each side independently
Responsive Spacing
Set different spacing for each breakpoint:Custom CSS Classes
Add custom CSS classes for advanced styling:Adding Classes
Class Naming Rules
Examples:- ✅
my-custom-class - ✅
hero_section - ✅
btn-primary - ❌
123invalid - ❌
my class(space) - ❌
my@class(special char)
Using Custom CSS
Write custom CSS in Global Settings or row settings:Custom CSS Location
Add custom CSS in:- Global Settings: Tools → Global Settings → CSS tab
- Row Settings: Advanced → CSS Selectors
- Theme: Your theme’s stylesheet
Advanced Styling
Hover States
Create hover effects:Animations
Add CSS animations:Custom Properties (CSS Variables)
Use CSS variables for consistency:Best Practices
Use Responsive Typography
Use Responsive Typography
Always set responsive font sizes to ensure readability on all devices. Reduce sizes by 10-20% for mobile.
Maintain Consistency
Maintain Consistency
Use consistent spacing, colors, and typography throughout your site. Consider using CSS variables.
Test Color Contrast
Test Color Contrast
Ensure sufficient contrast between text and backgrounds for accessibility (WCAG AA: 4.5:1 ratio).
Optimize for Performance
Optimize for Performance
Minimize custom CSS and use builder settings when possible for better optimization.
Keep Specificity Low
Keep Specificity Low
Avoid overly specific selectors. Use classes rather than IDs or complex selectors.
Troubleshooting
Styles Not Applying
- Check specificity: Your CSS might be overridden by more specific rules
- Clear cache: Clear all caching plugins
- Inspect element: Use browser dev tools to see computed styles
- Check syntax: Validate CSS for errors
Responsive Issues
- Verify breakpoints: Check Global Settings breakpoint values
- Test on real devices: Emulators can differ from actual devices
- Check media queries: Ensure queries are in correct order
Typography Problems
- Font not loading: Check font URL and format
- Weight not available: Verify the font supports the requested weight
- FOUT/FOIT: Implement font loading strategies
Next Steps
Learn how to create complex layouts with rows and columns