amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

flying-carpet : issue with multiple images

Open coreybyrnes opened this issue 7 years ago • 1 comments

@bradfrizzell @jasti @lannka I'm trying to develop an ad to live inside the Flying Carpet component with two tags. I have a good working demo with one tag where the img is perfectly centered horizontally and vertically, but when I try to introduce a second tag the layout falls apart and the positioning of both tags is thrown off.

demo with one tag: https://rev.cbsi.com/corey/test/amp/amp_demo_flying-carpet_736x736.html

demo with two tags displaying the issue: https://rev.cbsi.com/corey/test/amp/amp_demo_flying-carpet_736x737.html

Thanks!

coreybyrnes avatar Feb 20 '19 21:02 coreybyrnes

solved! I was able to solve the issue but using vw and vh units instead of % when adjusting the top and left positioning of the img tags.

coreybyrnes avatar Feb 22 '19 18:02 coreybyrnes