add CSS instead of inline styles to button div
This commit is contained in:
parent
014723144c
commit
b5c599a116
@ -1,3 +1,9 @@
|
||||
<style>
|
||||
.liAutoFill {
|
||||
text-align: center;
|
||||
margin: 0px 10px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function () {
|
||||
var fillScript = document.createElement('script'), // the LI autofill script (client-side)
|
||||
@ -100,13 +106,14 @@
|
||||
liAutoFillScript.defer = true; // as opposed to default 'async'
|
||||
|
||||
// add the iframe to the holder div
|
||||
iframeHolderDiv.setAttribute('class', 'liAutoFill');
|
||||
iframeHolderDiv.appendChild(fillScript);
|
||||
autoFillLocation.prepend(iframeHolderDiv);
|
||||
autoFillLocation.append(liAutoFillScript);
|
||||
|
||||
// moved from above to ensure it's in DOM before adding styles
|
||||
iframeHolderDiv.style.textAlign = 'center';
|
||||
iframeHolderDiv.style.margin = '10px 0px';
|
||||
// iframeHolderDiv.style.textAlign = 'center';
|
||||
// iframeHolderDiv.style.margin = '10px 0px';
|
||||
|
||||
if (typeof MktoForms2 !== 'undefined') {
|
||||
MktoForms2.whenReady(function (form) {
|
||||
|
Loading…
Reference in New Issue
Block a user