Log in

View Full Version : padding:initial vs. padding:0



Rain Lover
07-17-2014, 08:39 PM
Does padding:initial have any advantage over padding:0? Example:


<style>
textarea {
padding: 0;
}
</style>
<textarea>Hello, world!</textarea>

If there's no difference whatsoever, then why is the initial keyword added to CSS3?

ajfmrf
07-17-2014, 11:07 PM
A google search found this:

http://www.sitepoint.com/forums/showthread.php?1217595-padding-initial-vs-padding-0