Documentation DCO Enabler -> ENABLER GOOGLE WEB DESIGNER -> VERTICALLY ALIGN YOUR TEXT
VERTICALLY ALIGN YOUR TEXT
You have a banner with different text to display based on your campaign scenarios and you want them to automatically be centered in their div.
The method verticalAlign
adapts vertically a block of text automatically and center it in its div.
Important: To properly center the text in the dedicated area, specify the CSS font-size / line-height / width / height
to your element in pixel.
ADventori.initData ( {"wording": "Lorem ipsum dolor sit amet."});
ADventori.Format.setText(document.getElementById('votrediv'), ADventori.data.wording);
ADventori.Display.verticalAlign(document.getElementById('votrediv'));