'text-align' Example : text align : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » text align »

 

'text-align' Example



    
<html>
<body>
<div id="myDiv" 
     style="text-align:center">
     Click to change alignment to right.
</div>
<button onclick="myDiv.style.textAlign='right';">Align Right</button>
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» text align