answersLogoWhite

0

You do it using CSS. You can add CSS styles to the style attribute to an element and assign it the "text-align:center" value, or you can use a class that is pre-build in your CSS.

Classes, in this case, will simplify your JS code, but make it less self-contained.

User Avatar

Wiki User

13y ago

What else can I help you with?