Results 1 to 11 of 11
Related
-
IE 6 text-align center problem Forum: HTML Forum
Replies: 5 -
Align text with an image link? Forum: HTML Forum
Replies: 2 -
text-align center problem - only in ie6 Forum: CSS Forum
Replies: 4 -
Align text to Centered table Forum: HTML Forum
Replies: 6
-
11-05-2004, 01:40 AM #1
How do I align Text in the same line?
Hi I have just started learning html and I need help. Im trying to align three names in the same line but with one name to the left, one to the center, and one to the right. Like so
Peter Phil Duncan
I tried using <div align="right"> but realized <div> automatically makes a new line making it like
Peter
Phil
Duncan
Then I was told to use <span class="alignLeft">
But that also didn't work.
If someone could help me here I would be very Grateful
-
11-05-2004, 10:49 AM #2
Hi, welcome to the forums.
<span class="alignLeft"> isn't going to work on its own, it needs some CSS to go with it. Did you have any more code that that? Could you link to or post it?If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-05-2004, 04:58 PM #3
<div>
<span class="alignLeft">Pete
</span>
<span class="alignCenter">Phil
</span>
<span class="alignRight">Duncan
</span>
</div>
CSS? I will have to study that more I guess..
-
11-09-2004, 07:59 PM #4
If you get stuck and are in a hurry to find out what's exactly the solution, use Frontpage and do the changes and see how the coding is getting changed.If you are in need of good html tutorials, try out www.w3schools.com and www.htmlgoodies.com
-
11-18-2004, 08:36 PM #5
You could try a table if it fits your page...
<table>
<tr>
<td align="left">First Name</td>
<td align="center">Middle Name</td>
<td align="right">Last Name</td>
</tr>
</table>
-
05-28-2007, 04:25 AM #6
Re: How do I align Text in the same line?
<table>
<tr><td>name:</td></tr>
<tr><td>password:</td></tr>
<tr><td>id:</td></tr>
</table>
Dont keep color, so that the o/p appears like
name password id
-
01-20-2009, 10:14 PM #7
Re: How do I align Text in the same line?
div's are useful when controling the structure of the page. e.g. menu/nav, header/logo, paragraphs, columns, images. etc.
but for only three words just use a table, remember to state the width of the table and align each cell accordinally in css.
btw if you want give each name a seperate effect just give each cell its own class and you'll be able to control the font size color etc.
hope that helps,
mous
-
06-24-2010, 12:38 PM #8
-
06-25-2010, 12:44 AM #9
Re: How do I align Text in the same line?
Code:<div style="float:left;">One</div> <div style="float:left;">Two</div> <div style="float:left;">Three</div>
-
07-01-2010, 02:51 AM #10
Re: How do I align Text in the same line?
I will have to study that more I guess
-
07-14-2010, 11:31 PM #11
Re: How do I align Text in the same line?
Use this.
<table>
<td align="right">
<tr>
</tr>
<td/>
<table/>
I hope this will work.
David.