Webflow Layout Techniques

Responsive Image Annotations

Overview
Responsive Layout Techniques
102
Element Layouts
Aspect Ratio
201
Responsive Image Annotations
6:50
202
Collection List Alternating Item Layouts
4:32
601
Collection Page & Collection List Layouts
Collection List Card Layouts
4:32
601
Creating Variable Layout Options, per Collection Item
11:46
602
Random List Items on Every Page Refresh
10:00
603
Variable Collection Item Sizes in a Grid Layout
603
Limit Collection List Items by Breakpoint
10:00
604
Hide Collection List on Empty, or Item Qty
605
Responsive Pagination
605
Masonry Grid Layouts
607
Glossary w/ Letter Groupings
612
Comparison Grid Layout
612
CMS Style Multiref-Matched Items
11:00
614
Master-Detail Layouts
Master-Detail Layouts
710
CMS-Driven Expando
19:42
714
Special Layouts
Creating Leader Lines
5:54
821
Photo Gallery Layouts
821
Column Layouts
822
Text Layouts
823
Checkerboard Grid Styling
824
Tetris Grid Layouts
12:00
826
Advanced Techniques
Breakpoints
901
No items found.
Published
November 13, 2022
Updated
in lightbox
How do you position markers on top of an image responsively, so that when the image is resized, the markers stay in place?

I refer to this technique as relative-absolute positioning, and it involves a particular characteristic of how CSS positioning works.

  • Position the outer frame as relative
  • Position the inner markers as absolute

... and the markers will be absolutely positioned within the relative parent.

If you want to prevent the markers from interfering with mouse clicks and user interactions with the underlying element, you can apply CSS's pointer-events: none property.

This also works with video.

Demonstration Project

Check out these links to explore the demo project.

Notes

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.