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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Posts
    200
    Thanks
    23
    Thanked 0 Times in 0 Posts

    padding:initial vs. padding:0

    Does padding:initial have any advantage over padding:0? Example:

    Code:
    <style>
      textarea {
        padding: 0;
      }
    </style>
    <textarea>Hello, world!</textarea>
    If there's no difference whatsoever, then why is the initial keyword added to CSS3?

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,700
    Thanks
    80
    Thanked 4,511 Times in 4,475 Posts
    *** CROSSPOSTED ***

    padding:initial vs. padding:0

    Shame on you RainLover!
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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