In the below CSS class, Even when I have not entered any padding, it shows left and right padding around the text. Can someone please explain this behavior.
There isn’t any padding on it. The .blue-box element is a <h5> which is a block-level element and will span the width of it’s parent container. It also has some default top/bottom margin. The reason why it isn’t spanning all the way to the edge is the 10px padding on the parent container .yellow-box.