simple text formatting question

Discussion in 'HTML & Website Design' started by rowen77, Jun 21, 2008.

  1. #1
    I have some statistical data that I want to look neat, for example

    Name Michael Jordan

    Team(s) Chicago Bulls, Wizards

    Years Active 1984-2002


    now when I try and do this in html/css, how do I put space between the words, like in the above example, between Name and Michael Jordan. ?

    Thanks

    edit: In the Preview of this page, you can see what I mean.
     
    rowen77, Jun 21, 2008 IP
  2. JesseE

    JesseE Peon

    Messages:
    201
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here try this. Tell me if it works.


    <p>
    Name Michael Jordan<br />
    Team(s) Chicago Bulls, Wizards<br />
    Years Active 1984-2002<br />
    </p>
     
    JesseE, Jun 21, 2008 IP
  3. rowen77

    rowen77 Peon

    Messages:
    264
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3

    nope,I meant words on the same line. Can that be done?
     
    rowen77, Jun 21, 2008 IP
  4. JesseE

    JesseE Peon

    Messages:
    201
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I just posted the code on my website and <p> text here </P> worked fine for me it puts spaces inbetween the words but only 1 space.
     
    JesseE, Jun 21, 2008 IP
  5. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #5
    
    <p><span style="padding-right:20px">Name</span>Michael Jordan</p>
    
    HTML:
    or

    You can also do in this way:
    
    Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Michael Jordan
    
    HTML:
    &nbsp;= space
     
    YIAM, Jun 21, 2008 IP
    rowen77 likes this.
  6. cougarxs

    cougarxs Peon

    Messages:
    662
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok i think i know what you mean... give this a crack



    Name%20Michael%20Jordan

    Team(s)%20Chicago%20Bulls,%20Wizards

    Years%20Active%201984-2002

    Fiddle around with %20 or .. hmm i know what your on about... its the same as a php script for space, if it springs to mind i'll reply again
     
    cougarxs, Jun 21, 2008 IP
  7. rowen77

    rowen77 Peon

    Messages:
    264
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thanks guys that works
     
    rowen77, Jun 21, 2008 IP
  8. acare

    acare Banned

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thanks you
     
    acare, Jun 21, 2008 IP