non breaking space

Discussion in 'HTML & Website Design' started by cleverlyslick, Jan 28, 2009.

  1. #1
    &nbsp.

    i find this code annoying because somtimes i want to space out my text more than once.is there another code i can use without applying non breaking space code?i went to the w3 school but couldn't find it.

    thanks for the help guys
    :eek:
     
    cleverlyslick, Jan 28, 2009 IP
  2. momi

    momi Well-Known Member

    Messages:
    562
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    I usually copy and paste it if I want to space more than one time. :D
     
    momi, Jan 28, 2009 IP
  3. cleverlyslick

    cleverlyslick Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks momi for reply momi,i will actually try it lol.

    but here's my deal..

    <h3>i love dogs</h3>
    <p>dogs are my fav animal of all time and blah blah blah </p>

    now i want to space the <P> 3 times without having to use the &nbsp code.it sounds stupid but i just find this code annoying and makes the page look rather sloppy if you use it more than once.

    any other suggestions?
     
    cleverlyslick, Jan 28, 2009 IP
  4. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's called padding, learn it.
     
    garrettheel, Jan 28, 2009 IP
  5. dlb

    dlb Member

    Messages:
    203
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #5
    ...Or margin. I prefer margin to be honest.
     
    dlb, Jan 29, 2009 IP
  6. neuronenglish

    neuronenglish Guest

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i suggest trying firebug in firefox to play with the padding and margin
     
    neuronenglish, Jan 29, 2009 IP
  7. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Depends what you're applying it to. In this case, it'd most likely be cleaner to use padding in the css
     
    garrettheel, Jan 29, 2009 IP
  8. dlb

    dlb Member

    Messages:
    203
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #8
    If its something with a set width or height then margin is the best way to go. If its a fluid element then yes, padding is fine.
     
    dlb, Jan 29, 2009 IP
  9. cleverlyslick

    cleverlyslick Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thanks fellas,got the problem solved thanks to you guys.
     
    cleverlyslick, Jan 29, 2009 IP