coding help
Quick Code


Copy to clipboard
<div style="text-align: center">TEXT</div>

Introduction

Text align is an HTML, CSS, and WikiText attribute used to change the alignment of text (and ONLY the text). It's commonly used for centering, but can also be used to right align or left align!

How to use Text Align

To use Text Align, type in:

text-align:__

Fill in the blank with 'left', 'center', or 'right'!


You can also type in <center>, which centers the text too. Add </center> when you're done! Example:

Example!

The code for this:

<center>Example!</center>


Examples

Left-align text!

The code for this:

<div style="text-align: left">'''Left-align text!'''</div>
Centered text!

The code for this:

<div style="text-align: center">'''Centered text!'''</div>
Right-align text!

The code for this:

<div style="text-align: right">'''Right-align text!'''</div>