How can I create a parent div with 100% width and manually change the height at a specific breakpoint in Webflow, and have an image that covers the parent div as well as a gradient div on top, without using background images? And can you please provide guidance on how to learn these basic concepts in Webflow?

TL;DR
  • Create a parent div with 100% width and set adjustable height at specific breakpoints in Webflow, overlaying an image and gradient using absolute positioning. 
  • Utilize Webflow University and community resources for learning foundational skills and best practices.

To achieve a parent div with 100% width and a manually adjustable height at a specific breakpoint, along with an overlapping image and gradient, you'll need to make adjustments using Webflow's Designer. Additionally, I'll provide some tips on learning basic Webflow concepts.

1. Set Up the Parent Div

  • Add a Div Block to your Canvas in Webflow.
  • Set the Width to 100%. This ensures the div spans the entire width of its container.
  • Set a Default Height (e.g., auto or a specific value) that can be adjusted based on your design needs.

2. Adjust Height at a Specific Breakpoint

  • Navigate to Breakpoints in the Designer panel. You can click on different devices to access their respective settings.
  • Select the Desired Breakpoint where you want to manually change the height.
  • Set a Custom Height at this breakpoint. You can do this by entering a specific value in the height field for this breakpoint.

3. Add and Configure the Image

  • Add an Image Element inside the parent div.
  • Ensure the Image Covers the entire parent div. You can achieve this by setting the image’s width and height to 100%.
  • Use the Position Settings to set the image’s position to Absolute with full coverage for top, right, bottom, and left set to 0.

4. Add the Gradient Div

  • Insert Another Div Block inside the parent div, above the image.
  • Style the Div with a Gradient Background using the Backgrounds panel. You can select the gradient type and colors.
  • Set the Div’s Position to Absolute to cover the image completely using full coverage positioning (top, right, bottom, left set to 0).

5. Learn Basic Concepts in Webflow

  • Explore Webflow University: Offers comprehensive tutorials and guides covering from beginner to advanced topics.
  • Practice with Templates: Use Webflow’s templates to reverse-engineer design techniques and understand Webflow components.
  • Community Forums: Engage in Webflow's forums to ask questions and share knowledge with other users.

Summary

Create a parent div at 100% width, adjust height at specific breakpoints manually, and overlay an image and gradient using Webflow's design tools. For learning, Webflow University and community resources are excellent starting points.

Rate this answer

Other Webflow Questions