-2

What is the default padding value for div elements? Is default value defined or its up to the UA/browsers?

Edit: Can you please provide reference to specs along with the answer.

Edit2: Its a varied response : 1) Its 0, without any reference or explanation. 2) It depends on browser. 3) Comments stated that there is no discussion for DIV. So RESPECTED DOWNVOTERS would you care to explain the reasons for the downvotes?

Nitesh
  • 2,681
  • 4
  • 27
  • 45
  • https://www.w3.org/TR/CSS2/sample.html – Roko C. Buljan Mar 17 '16 at 12:07
  • Its a varied response : 1) Its 0, without any reference or explanation. 2) It depends on browser. 3) Comments stated that there is no discussion for DIV. So RESPECTED DOWNVOTERS would you care to explain the reasons for the downvotes? – Nitesh Mar 18 '16 at 01:13

2 Answers2

1

What is the default padding value for div elements?

It is 0

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
0

It depends on what browser you're using. Most people will use a reset/normalize script to make sure styles are consistent throughout browsers.

Gavin Thomas
  • 1,196
  • 6
  • 10
  • 2
    For DIV there's no discussion. Otherwise: http://stackoverflow.com/questions/6867254/browsers-default-css-for-html-elements – Roko C. Buljan Mar 17 '16 at 12:03