Is there a way to make the Amazon Pay Address Widget fluid instead of fixed width?
I would like to specify width and height in ems not pixels.
I would like to specify width and height in ems not pixels.
design : { designMode: 'smartphoneCollapsible' }
<style type="text/css"> .amazonpay_inner { position: relative; left: -50%; } .amazonpay_outer { display: -moz-inline-stack; display: inline-block; vertical-align: middle; zoom: 1; position: relative; left: 50%; } </style>
<style type="text/css"> .amazonpay_inner { position: relative; left: -50%; } .amazonpay_outer { display: -moz-inline-stack; display: inline-block; vertical-align: middle; zoom: 1; position: relative; left: 50%; } </style>
<style type="text/css"> .amazonpay_inner { position: relative; left: -50%; } .amazonpay_outer { display: -moz-inline-stack; display: inline-block; vertical-align: middle; zoom: 1; position: relative; left: 50%; } </style>
<mvt:item name="amazonpay" /> <style> .amazonpay_outer {min-width:320px; min-height:80px;} .amazonpay_inner {min-width:320px; min-height:80px;} </style>
<div class="amazonpay_outer"> <div class="amazonpay_inner"> <div id="addressBookWidgetDiv"></div> </div> </div> <script> new OffAmazonPayments.Widgets.AddressBook({ sellerId : '&mvt:amazonpay:merchantid_encoded;', amazonOrderReferenceId : '&mvt:amazonpay:amazonOrderReferenceId_encoded;', design : { designMode: 'smartphoneCollapsible' }, onAddressSelect : function(orderReference) { }, onError : function(error) { } }).bind("addressBookWidgetDiv"); </script>
<div class="amazonpay_outer"> <div class="amazonpay_inner"> <div id="walletWidgetDiv"></div> </div> </div> <script> new OffAmazonPayments.Widgets.Wallet( { sellerId: '&mvt:amazonpay:merchantid_encoded;', amazonOrderReferenceId: '&mvt:amazonpay:amazonOrderReferenceId_encoded;', design : { designMode: 'smartphoneCollapsible' }, onAddressSelect : function(orderReference) { }, onError : function(error) { } }).bind("walletWidgetDiv"); </script>
<mvt:if expr="NOT l.settings:amazonpay_address:center"> <div id="addressBookWidgetDiv" style="min-width: 400px; height: 200px;"></div> <mvt:else> <div class="amazonpay_outer" style="width: 100%"> <div class="amazonpay_inner" style="width: 100%"> <div id="addressBookWidgetDiv" style="min-width: 400px; height: 200px;"></div> </div> </div> </mvt:if> <script> new OffAmazonPayments.Widgets.AddressBook( { sellerId: '&mvt:amazonpay:merchantid_encoded;', amazonOrderReferenceId: '&mvt:amazonpay:amazonOrderReferenceId_encoded;', onAddressSelect: function( orderReference ) { }, design: { designMode: 'responsive' }, onError: function( error ) { return alert( error.getErrorMessage() ); } } ).bind( "addressBookWidgetDiv" ); </script>
Comment