Helpful resources
            
           
              Need more help?
             
             
              Check out the Webflow community.
             
            
              Free Webflow templates
             
             
              The best free Webflow templates.
             
            
              Hire a Webflow expert
             
             
              Partner with a certified expert.
             
            How can I position two text blocks over a background image in Webflow?
             Published on
            
            
             September 22, 2023
            
           To position two text blocks over a background image in Webflow, you can use the built-in positioning and flexbox features. Here's a step-by-step guide on how to achieve this:
- 
             Add a
             
Sectionelement to your Webflow project. - 
             Inside the
             
Section, add aContainerelement to hold your content. - 
             Insert an
             
Imageelement within theContainerand select the desired background image. - 
             By default, the
             
Imageelement will stretch to cover the entireContainer. To maintain the aspect ratio of the image, go to theImage Settingspanel and set theWidthto100%and theHeighttoauto. - 
             Now, add a
             
Divblock underneath theImageelement. ThisDivblock will contain your text blocks. - 
             Inside the
             
Divblock, add a separateDivfor each text block you want to position. - Apply the necessary styling to the text blocks, such as fonts, colors, and sizes.
 - 
             To position the text blocks over the background image, select the parent
             
Divblock containing the text blocks and go to thePositioningpanel. - 
             Choose
             
Absolutefrom thePositiondropdown menu. This will allow you to place the text blocks wherever you want within the parent div. - 
             Adjust the
             
Top,Right,Bottom, andLeftvalues to position the text blocks precisely where desired. - 
             If you want the text blocks to be centered, you can use the flexbox feature. Select the parent
             
Divblock and navigate to theFlexboxpanel. - 
             Enable
             
Flexboxand set theJustifyandAlignoptions toCenter. - 
             Finally, make sure the parent
             
Divblock has a higherZ-Indexthan the image so that the text blocks appear on top of the background. 
By following these steps, you should be able to position two text blocks over a background image in Webflow. Remember to preview and test your design to ensure it appears correctly on different devices.
Additional questions:
- How do I resize and crop the background image in Webflow?
 - Can I animate the text blocks using interactions in Webflow?
 - What are some best practices for optimizing images in Webflow for SEO?