# Padding left, top, right and bottom in LaTeX

I want to include the Padding left, top, right and bottom. How can we do in LaTeX?

-
Welcome to TeX.sx! Please add a minimal working example (MWE) to give more detail on where this 'padding' is located. –  Joseph Wright Jul 22 '11 at 7:22

If I understand your question correctly, the geometry package could be used:

\usepackage[%
left=0.50in,%
right=0.50in,%
top=1.0in,%
bottom=1.0in,%
paperheight=11in,%
paperwidth=8.5in%
]{geometry}%

Also see xports answer to How can I set up the left/right margin of the page to 1 inch, the top/bottom one to ½ inch?

-
Is this margin or padding. Then how to set for (margin - left right top bottom). I am asking for padding, what is the tag? Please reply margin tag and padding tag separately. –  user6830 Jul 22 '11 at 7:31
Thanks for your reply. This is for page. In a table how to set padding. –  user6830 Jul 22 '11 at 7:41
Please see this link first: How to add border and padding to contents If you are satisfied with the given link, don't forget to up vote it. :-) –  xport Jul 22 '11 at 7:50
Please see Joseph's comment about providing a MWE. –  Peter Grill Jul 22 '11 at 8:23

Note that LaTeX itself doesn't differ between margin and padding, because it actually doesn't now this concepts. They are normally not required for typesetting. Books are simply done differently than websites.

The adjustbox package includes a \marginbox which allows to add a margin (or padding) around a boxed content. There is also a margin option for \adjustbox or the adjustbox environment.

There are three different ways to define the margin/padding:

\marginbox{<all sites>}{<content>}
\marginbox{<left/right> <top/bottom>}{<content>}
\marginbox{<left> <bottom> <right> <top>}{<content>}

<content>

If you want to set padding, draw a frame/border around it and then add some margin use:

\begin{adjustbox{margin=<l> <b> <r> <t>,frame=<thickness>,margin=<l> <b> <r> <t>}
<content>