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 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2013
    Posts
    79
    Thanks
    45
    Thanked 0 Times in 0 Posts

    paragraph tag problem

    applied line-height to p tag, but it's increasing the space between each line, how do it make it only increase the spacing before the whole p

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by h123er2 View Post
    applied line-height to p tag, but it's increasing the space between each line, how do it make it only increase the spacing before the whole p
    CSS line-height property is just what it sounds like - line height.

    Once again, if you want to make a space somewhere, it's usually a margin that's going to do it for you.
    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

  • Users who have thanked Excavator for this post:

    h123er2 (04-13-2013)

  • #3
    New Coder
    Join Date
    Mar 2013
    Posts
    79
    Thanks
    45
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    CSS line-height property is just what it sounds like - line height.

    Once again, if you want to make a space somewhere, it's usually a margin that's going to do it for you.
    thanks mate, youve been really helpful


  •  

    Posting Permissions

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