What is This All About?

When you participate on forums discussions, sometimes to type plain text would make it, but often, you need to make your posts more interesting: to add styles, change fonts, play with colors, insert links or to display images ...

In web development, HTML is used for all that, but in forums posts, a simplified code inspired from it allows users to format text, that code's called the "bbCode".

This blog will help you easily understand & use bbCode. Have Fun!!! :)

ps: don't hesitate to post a comment for any help needed or a suggestion, or just to say hi! :)

Wednesday, September 19, 2007

How to Change Text Alignment - bbCode Basics

Note: If this lesson seems a bit unclear to you, you may want to check basic bbCode lessons: How Does bbCode Work? & How to Correctly Insert Tags.

Most of time, the text in forums discussions is aligned on the left, but you can change the alignment in your posts, for decoration, when submitting in some language that's written from right to left, or for any other reason.

There are three tags for text alignment:

[left] - Text left aligned.

[center] - Text centered.

[right] - Text right aligned.

The tags are applied to text as with other tags, they have to wrap the part of your text you want to change the alignment (read How to Correctly Insert Tags).

Examples:

[left]This text is left-aligned.[/left]

[center]This text is centered.[/center]

[right]This text is right-aligned.[/right]

In order, the three lines above will look in your final message:

This text is left-aligned.

This text is centered.

This text is right-aligned.

What to add? Hmm ..

1. That it's useless to combine two or all three alignment tags, that would only help to get an undesired result (more about combining tags HERE).

2. As with Fonts Change, the guys from phpBB think it's useless to let users align text as they wish, let's hope they fix that soon. With other popular forums platforms text alignment works fine: vBulletin, IP.Board & Simple Machines.

3. If you're not sure what software the forum you're part of uses read: What Kind of Forum are You Using?

4. Click here to know how to align pictures.

1 comment:

Ben said...

On my phpBB forum, Guildomatic, I recently had to use [align=center]This is centered text.[/align] to center text or picture.