Text Dynamisation

VERTICALLY ALIGN YOUR TEXT

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.

ADventori.initData ( {"wording": "Lorem ipsum dolor sit amet."}); 
ADventori.Format.setText(document.getElementById('votrediv'), ADventori.data.wording);
ADventori.Display.verticalAlign(document.getElementById('votrediv'));