I'm looking to create a 4px
space between all internal components within my HTML, regardless of direction (top, bottom, left, or right). I have attempted to achieve this by using an external CSS file with the following code:
body {
padding: 2px;
border: 0px;
margin: 0px;
}
However, this code creates a 4px
space around the entire body instead of between its individual components.
In addition, the following code snippet also did not yield the desired results:
{
display: inline-block;
padding: 4px;
}
If possible, could you please assist me in achieving the desired spacing without making alterations to the HTML page?