Jump to content

How to right align without header or paragraph tags?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
nomonaynohonay

nomonaynohonay

    Newbie

  • Members
  • Pip
  • 5 posts
Bit of a newbie question! Ive been googling this for some time now. I would like to right align a piece of text without creating breaks above or below it. Ex:

blah blah blah blah blah
--------------------------------------->blah blah blah
blah blahblah blah blah

Thanks!

#2
Zakk

Zakk

    Newbie

  • Members
  • Pip
  • 4 posts
<p>blah blah blah blah blah 
<span align=right>blah blah blah blah blah </span>
blah blah blah blah blah blah blah</p>

You mean something like that?

#3
nomonaynohonay

nomonaynohonay

    Newbie

  • Members
  • Pip
  • 5 posts
Hey Zakk. Not sure if im doing this wrong but the output is simply one line for me: blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. With no change in alignment or breaks. Any suggestions? Thanks for the help.

#4
Drew

Drew

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
Easy way, add the <br/>

blah blah.

<br/>

<div align="right">blah blah!</div>

<br/>

blah blah.


or if using tables.
<table>

<tr>

<td> blah blah </td>

</tr>

<tr>

<td align="right"> blah blah </td>

</tr>

<tr>

<td> blah blah </td>

</tr>

</table>


Adding a SPAN into the PARAGRAPH tag is useless because the SPAN is inline. so need to use something that is BLOCK styled without using the STYLE Tag.

#5
nomonaynohonay

nomonaynohonay

    Newbie

  • Members
  • Pip
  • 5 posts
Thanks AndyW! The div tag works perfectly. I needed it for dates for job titles in my resume without skipping lines!

#6
Drew

Drew

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
Not a problem. Glad to be of assistance.