Total padding in css

What will be the padding if body part as 10px and div part as 20px

1 Like

@sangamsai98
body {
padding: 10px;
}

div {
padding: 20px;
}

body {
padding: 10px;
}

div {
padding: 20px;
}

If you gave class/ Id to div then u have to call class/id in css and write the padding 20px
#id_div {
padding: 20px;
}
Or
.class_div{
padding: 20px;
}