MyBB Community Forums

Full Version: [HELP] Display Information - Left, Right, Middle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to display the information similar to this;

[Image: uiqETQf.png]

How do I align my text to look like that? Could you provide me with an html code to do so?

Thank you.
HTML and CSS. Look at some tutorials.
http://www.google.com/search?q=html+center+align
One of the top two results are what you are looking for.
<div align="center">This text will be center-aligned.</div>
<center>This text will be center-aligned.</center>
<span style="align: center;">This text will be center-aligned.</span>
The easiest way would be like this:

HTML:
<table class="aligned">
<tr>
<td>
Text and stuff here.
</td>
<td>
Text and stuff here.
</td>
<td>
Text and stuff here.
</td>
</tr>
</table>

CSS:
.aligned {
width: 100%;
border: 0;
border-spacing:0;
border-collapse:collapse;
text-align: center;
}

Also what Jordan suggested is depricated code, so I wouldn't suggest using it. xP Something like the use of text-align:left/right; and margin: 0 auto; can accomplish the alignment if you're a little more experienced.