[HELP] Display Information - Left, Right, Middle
#1
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.
[Image: UPAbi6y.png]
Reply
#2
HTML and CSS. Look at some tutorials.
Reply
#3
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>
Reply
#4
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)