how to avoid linebreak

Discussion in 'HTML & Website Design' started by sam1, May 4, 2006.

  1. #1
    can anybody tell me how to avoid linebreak before and after <p> ...</p>
     
    sam1, May 4, 2006 IP
  2. mihaidamianov

    mihaidamianov Well-Known Member

    Messages:
    1,434
    Likes Received:
    111
    Best Answers:
    0
    Trophy Points:
    190
    #2
    You could use <br> for a change..
     
    mihaidamianov, May 4, 2006 IP
    Mong likes this.
  3. sam1

    sam1 Active Member

    Messages:
    679
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    58
    #3
    no, i want to use <p> ...</p> and there should be any linebreak as well..

    I tried display:inline but that is also not working
     
    sam1, May 4, 2006 IP
  4. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4

    Why are you so adamant about <p>?
     
    Foxy, May 4, 2006 IP
  5. sam1

    sam1 Active Member

    Messages:
    679
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    58
    #5
    ok i will try to do without <p>.. and see if it works
    anyway..thanks
     
    sam1, May 4, 2006 IP
  6. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Use

    <br />

    as it is self closing :)
     
    Foxy, May 4, 2006 IP
  7. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #7
    Tags to prevent line breaks are:
    <nobr> </nobr>

    However I am not sure if they override <p></p> tags.

    Q...
     
    QiSoftware, May 4, 2006 IP
  8. Jim bob 9 pants

    Jim bob 9 pants Peon

    Messages:
    890
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Use

    <br />
     
    Jim bob 9 pants, May 4, 2006 IP
  9. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #9
    To everyone suggesting how to create line breaks: The question is how to avoid line breaks.

    Sam, setting the paragraph to display inline is what you want. However, if the element above the paragraph is also a block-level element -- a heading, for example -- then it will force any element after it onto the next line. So, the block-level element preceding the paragraph must also be displayed inline.
     
    FeelLikeANut, May 4, 2006 IP