I wonder why if I won't specify background-color
for html
, the background-color
specified for body will apply to whole page even though body width
is set to only 200px
.
Asked
Active
Viewed 156 times
0

Adrian Baran
- 885
- 7
- 23
-
1your question is true, but you should never set width to `body` ot html `tags` – ma_dev_15 Jul 29 '16 at 10:49
-
@ma_dev_15 yes you are right as we don't have to set any width for body or html tags.. – vignesh Jul 29 '16 at 10:58
-
@Adrian Baran and this a common factor as you should be aware of it.. – vignesh Jul 29 '16 at 10:59