Skip to main content
Noble Desktop/1 min read

Quickly Code CSS text-align: center in Sublime Text

Emmet for CSS

Type tac

Emmet abbreviation — Tab expands to text-align: center;

Other Quick Aligns

tal → text-align: left, tar → text-align: right, taj → text-align: justify.

Requires Emmet

Install via Sublime Text's Package Control — built into VS Code by default.

Cheat Sheet

docs.emmet.io/cheat-sheet — the full list of CSS abbreviations.

Master Web Development at Noble Desktop

Noble Desktop's Full-Stack Web Development Certificate covers HTML, CSS, JavaScript, and the modern web stack.

In CSS, type tac and hit Tab to expand to text-align: center;

Ct code text align center revisited

Note: This coding tip requires Emmet to be installed in Sublime Text. For instructions on how to install Emmet, download our Sublime Text Enhancements Installation Guide.

Learn more . These coding tips are covered in our hands-on coding classes and bootcamps in NYC.