Hey guys, so my html/css knowledge is pretty basic and I'm trying to align a div wrapper that contains a "secure checkout" svg under my "add to cart." I can get it to align properly on desktop view by setting the width the same as the add to cart button, however on mobile view the add to cart button changes width and I can't figure out how to make my svg align.
Here is the code I have right now along with a screenshot on desktop (I removed most of the svg content to make it easier to read):
<div class="Lock_Icon"><div style= "width: 312.5px;"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
style="isolation:isolate; margin: 0 auto;" viewBox="16.425 167.5 967.149 468.5">
--More SVG Content--<g transform="matrix(1,0,0,1,16.425,536)"><text transform="matrix(1,0,0,1,0,69.696)"
style="font-family:"Montserrat";font-weight:700;font-size:72px;font-
style:normal;fill:#4987b6;stroke:none;">100% SECURE CHECKOUT</text></g></svg></div></div>
![]()
As you can see it aligns perfectly when I have the div width set to the add to cart desktop width (312.5px) and then here is what it looks like on mobile when the add to cart button changes to 328px width:
![]()
It seems like I've tried a million different things and still can't figure it out so any help would be greatly appreciated. Thanks!