how can I put text in right hand ?

Discussion in 'HTML & Website Design' started by kk890, Aug 3, 2009.

  1. #1
    i would liek to put the test in right hand,

    such as ,

    "hello, this word in right hand ,"
    what html code can do that?

    as I try the follow ,but it will become 2 line, I want all words on the same line,
    hello, <p align="right">this word in right hand </p>
     
    kk890, Aug 3, 2009 IP
  2. alexanderx

    alexanderx Active Member

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    using <p> will create a new paragraph. so "this word in right hand" will placed down after "hello".

    why put hello outside? you want like this right?
    <p align="right">hello, this word in right hand </p>

    or?
     
    alexanderx, Aug 3, 2009 IP
  3. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes, I need this effect,
    "hello" on the left, "this word in right hand" on the right
     
    kk890, Aug 3, 2009 IP
  4. miles2go

    miles2go Peon

    Messages:
    567
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can text on right side by using widget in that you get option of text. So write your text in the box and get published.
     
    miles2go, Aug 3, 2009 IP
  5. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sorry, i can not get your mean?
     
    kk890, Aug 3, 2009 IP
  6. gyanprakash

    gyanprakash Peon

    Messages:
    5
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    for this man Please put

    <p style="float:right;">text</p>

    This is working all the browser.
     
    gyanprakash, Aug 4, 2009 IP
  7. alexanderx

    alexanderx Active Member

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #7
    right it's working. i thought of using div but i think float just do it nicely.

    <p style="float:right;">this word is in the right</p>
    <p style="float:left;">this word is in the left</p>
     
    alexanderx, Aug 4, 2009 IP
  8. htt5001

    htt5001 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Or, you can use table:
    <table>
    <tr><td align="left">Something on the left</td><td>something on the right</td></tr>
    </table>
     
    htt5001, Aug 4, 2009 IP
  9. takecare4ever

    takecare4ever Well-Known Member

    Messages:
    361
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
  10. DOCtriN

    DOCtriN Well-Known Member

    Messages:
    184
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #10
    You can also use CSS:

    #right {
    text-align:right;
    }

    #left {
    text-align:left;
    }

    <div id='right'>Hi, I'm on the right side</div><div id='left'>Hi, I'm on the left side</div>
     
    Last edited: Aug 4, 2009
    DOCtriN, Aug 4, 2009 IP