A margin may refer to any of the following:
1. A margin is a space separating text or other elements from the edge of the paper commonly adjusted through the page setup. Most programs allow for the Top, Bottom, Left, and Right margins to be set. The standard margin settings are 1" Top and Bottom and 1.25" Left and Right.
In the above picture, is an example of a document with each of the margins shown in red.
How does adjusting the margins affect the text?
By increasing the size of the margins you decrease the available space on the page that text can occupy. In other words, a page with bigger margins have less room for text. If you decrease the size of the margins the page can accept more text.
2.With CSS, a margin is a white space around an element or another object on a web page. The picture below helps demonstrate the difference between padding and a margin when working with CSS. As can be seen, the padding is within the border, and the margin is outside the border.