To style an image in Webflow, you can apply visual properties using the Style panel or by assigning custom classes. Here’s how to do it step-by-step.
1. Select the Image Element
- Click on the image in the Designer canvas or use the Navigator panel to select it.
- Once selected, the Style panel on the right shows available styling options.
2. Apply a Class
- Click the Selector field at the top of the Style panel.
- Enter a new class name (e.g., “hero-image”) and press Enter.
- This allows you to reuse styles for other elements later.
3. Adjust Basic Styles
- In the Style panel, you can change:
- Width/Height: Set in px, %, vw, or auto depending on your layout needs.
- Border Radius: Use to round image corners.
- Box Shadow: Add shadow for depth.
- Object Fit: Set to cover, contain, or fill (recommended if the image is inside a div).
- Positioning and Display if part of a layout.
4. Use Flexbox or Grid for Layout
- If the image is part of a layout, ensure the parent container uses Flexbox or Grid for better alignment and responsiveness.
- Select the parent container and go to the Layout section to toggle these options.
5. Add Hover or Responsive Styles (Optional)
- Switch to the hover state by clicking the arrow next to the class name then selecting Hover.
- Add transitions or hover effects like scaling, opacity, or brightness.
- Use breakpoints (at the top of the Designer) to apply different styling on mobile, tablet, or desktop views.
6. Use Image Settings if Needed
- Click the gear icon next to the image to access Image settings.
- Adjust alt text for accessibility and SEO.
- Replace the image if necessary.
Summary
To style your image in Webflow, assign a class, use the Style panel for visual properties (size, borders, shadows), and control layout with Flexbox or Grid. Add hover states or responsive tweaks as needed for better design interaction.