Strikethrough for Text | Marpipe Knowledge Base
Strikethrough for Text
How to set up your text layer to dynamically strikethrough
Written by Austin Alexander
November 1, 2024
Strikethrough pricing is a strong feature to add into your design. There are two options to add strikethrough - Static Strikethrough & Dynamic Strikethrough.
Static strikethrough is done by simply adding a line element as a layer, placing it over the element you wish to strikethrough.
Dynamic strikethrough uses the text layer's Textbox property as a way to dynamically adjust the size of the strikethrough based on how many characters per product row. Below are the steps to achieve dynamic strikethrough:
This effect will only work for single line copy
Make sure Text Wrapping is off & switch the bounding box mode to Auto With
Set the Transform Height (H) to the thickness of your strikethrough line (recommended value = 2px)
Turn on Textbox - Stroke and set to the same value as your Transform Height (H) above (recommended value = 2px)
Adjust Left/Right Padding to expand the line an appropriate width (recommended value = 10)