Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to make half a <br> (text only)

    prise2admin asked same in 2-15-05. (Resolve was padding between tables.) I need resolve between text paragraphs. (Solutions in his string did not work.)

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello kamla,
    the <br /> is for a line break in text, not for making space between paragraphs. You would adjust the margin on your p tag for that.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    And I will add, if you want to put some space between only the first and second paragraphs but not the others, then you will need to assign a class to the paragraph you're styling.

    <p class="someName">

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by teedoff View Post
    And I will add, if you want to put some space between only the first and second paragraphs but not the others, then you will need to assign a class to the paragraph you're styling.

    <p class="someName">
    Or in your specific example you could use p:first-child{margin-bottom:6px;} (or whatever) to set the bottom margin for the first paragraph to be different from the rest...

    Sorry, I'm bored and there aren't many new threads to respond to.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #5
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by Rowsdower! View Post
    Or in your specific example you could use p:first-child{margin-bottom:6px;} (or whatever) to set the bottom margin for the first paragraph to be different from the rest...

    Sorry, I'm bored and there aren't many new threads to respond to.
    lol me too and this site has seemed dead the last couple of days...everyone must be Christmas shopping instead of posting coding issues! hahaha

  • #6
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Yes. Either that or we have finally answered every possible question.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •