code for breaking space

Discussion in 'HTML & Website Design' started by mnymkr, Jun 22, 2007.

  1. #1
    I can not find a straight answer on google.

    I know the code for non breaking space but what is the code for breaking space.

    my pagination just continues forever LOL
     
    mnymkr, Jun 22, 2007 IP
  2. Arnold9000

    Arnold9000 Peon

    Messages:
    241
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I could have misunderstood, but isn't that simply <br>? If you are doing back end coding, then usually it's \n for newline, depending on what language it is. Sorry if I misunderstood your question.
     
    Arnold9000, Jun 22, 2007 IP
  3. danfinney

    danfinney Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Arnold9000 is correct. A breaking space or a break is <br> or in XHTML <br />
     
    danfinney, Jun 22, 2007 IP
  4. mnymkr

    mnymkr Well-Known Member

    Messages:
    2,328
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    120
    #4
    sorry maybe i described it wrong

    on my pagination links i needed spaces between each page number. i used the code for a nonbreaking space. I need to add a code for a space that will break when the line gets to the end of my divsion.

    Now it is continous string of nonbreaking characters that flows outside of my divisoin.

    so i don't want it to break until it gets to the edge of the division

    so i get i am looking for a space that will wrap.
     
    mnymkr, Jun 22, 2007 IP
  5. danfinney

    danfinney Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hmmm.... can't you just specify a width for the division in CSS and have it do this? For instance, if you had a DIV tag with a width of 400px and your numbers are formatted like this: 11111 22222 333333 44444444, when the 4block hits the edge of the DIV it will wrap to the next line.

    Or are you talking about numbers formatted like this: 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 4, and you want the entire 4 block to wrap instead of wrapping in the middle of the 4's???
     
    danfinney, Jun 22, 2007 IP
  6. Oompa

    Oompa Banned

    Messages:
    803
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    <div>

    I'm kind of confused, but I'm just saying <div>
     
    Oompa, Jun 22, 2007 IP
  7. Drew007

    Drew007 Peon

    Messages:
    310
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Do you mean this: &nbsp;
     
    Drew007, Jun 22, 2007 IP
  8. -CP-

    -CP- Well-Known Member

    Messages:
    181
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    140
    #8
    you could just add "overflow: auto;" then it wouldn't break out the div, it'd add a scroll bar....
     
    -CP-, Jun 22, 2007 IP
  9. mnymkr

    mnymkr Well-Known Member

    Messages:
    2,328
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    120
    #9


    if the second 4 got to the end of the division i would want it to wrap


    as it is now, because i am using a nonbreaking space to separate them, the numbers flow outside of my division
     
    mnymkr, Jun 23, 2007 IP
  10. Philopoemen

    Philopoemen Peon

    Messages:
    704
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #10
    :))))) very weird question. You know, you could convert your elements into an unordered list, this way you don't have to use the &nbsp;, and everything will wrap just nicely.
     
    Philopoemen, Jun 23, 2007 IP
  11. mnymkr

    mnymkr Well-Known Member

    Messages:
    2,328
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    120
    #11
    yeah i know, but is this what other people who paginate dynamic content do?
     
    mnymkr, Jun 23, 2007 IP
  12. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #12
    Page number? Are you working on a print CSS?

    I really don't think any of us are understanding what you are asking... Since 'pagination link' and 'non-breaking space' is ... well, gibberish.

    Do you have a link we could look at?

    Oh wait, I see what you are saying... I only know two ways of doing that - using &nbsp; instead of spaces which is.... long and hard to maintain.... or to wrap each group you want to wrap together inside a span or other inline container, then make the span white-space:nowrap;

    <style type="text/css">
    .blockwraps span {
    white-space:nowrap;
    }
    </style>

    <p class="blockwraps">
    <span>1 1 1 1 1 1</span> <span>2 2 2 2 2 2</span> <span>3 3 3 3 3 3</span>
    <span>4 4 4 4 4 4</span>
    </p>

    That would make them wrap as a group - in theory at least. Again though, a code sample or link might help us better diagnose.
     
    deathshadow, Jun 23, 2007 IP
  13. mnymkr

    mnymkr Well-Known Member

    Messages:
    2,328
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    120
    #13
    mnymkr, Jun 23, 2007 IP
  14. danfinney

    danfinney Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    LOL, so your fix was the spacebar?
     
    danfinney, Jun 24, 2007 IP