How can I make the main heading in the "Hailey" template stay fixed but go over some images and under others?

Published on
September 22, 2023

To make the main heading in the "Hailey" template stay fixed but go over some images and under others, you can follow these steps in Webflow:

  1. Open your project in Webflow and navigate to the page where you want to make the changes.

  2. Identify the main heading element that you want to modify. This is typically an <h1> or <h2> tag.

  3. Apply a fixed position to the main heading. Select the heading element and under the "Position" tab in the Styles panel, choose "Fixed" from the Position dropdown menu.

  4. Adjust the z-index of the main heading. In the same "Position" tab, increase the z-index value to a higher number like 9999. This ensures that the main heading appears above other elements on the page.

  5. Identify the images that you want the main heading to go over. These could be background images or images within specific elements.

  6. Set the position of the images to relative or static. By default, elements have a static position which means they flow with the content. If the images have a static position, the main heading will naturally go over them. However, if the images have a relative position applied, change it to static to allow the heading to go over them.

  7. Preview and fine-tune. Preview your changes to see the main heading staying fixed and going over some images while being under others. If needed, make further adjustments to the positioning, z-index, or other styles to achieve the desired effect.

By following these steps, you can create a visually appealing design where the main heading remains fixed, providing a consistent element across the page, and selectively overlaps or stays under certain images.

Additional questions:

  1. How do I set a fixed position for an element in Webflow?
  2. Can I make specific elements on my website go over images or other elements?
  3. How can I adjust the z-index of elements in Webflow to control their stacking order?