How can I set a different padding value for each side? I want a result that corresponds with this HTML/CSS configuration:
<html>
<head>
<style>
div {
background: #444;
color: white;
}
div.padded {
padding-top: 60px;
padding-right: 10px;
padding-bottom: 15px;
padding-left: 152px;
}
</style>
</head>
<body>
<div class="padded">
Padded<br>
Top: 10px; bottom: 0px<br>
Left: 5em; right: 0px
</div>
</body>
</html>
What is the exact paragraph style to set in LaTeX?
\documentclass{article}
\usepackage{fontspec}
\usepackage{fancyhdr}
\usepackage{multicol}
\pagestyle{plain}\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt}
\begin{document}
\thispagestyle{empty}
\font\brbrdivpadded="Times New Roman":color=ffffff at 12pt
\font\brdivpadded="Times New Roman":color=ffffff at 12pt
\font\divpadded="Times New Roman":color=ffffff at 12pt
\divpadded{Padded }\divpadded{Top: 10px; bottom: 0px }\divpadded{Left: 5em; right: 0px }
\end{document}

adjustboxprovides a\marginbox{<llx> <lly> <urx> <usry>}{..}macro which can be used to add the padding. Also have a look on themdframedor the olderframedpackage. But LaTeX and HTML/CSS work under complete different principles, so a little more context would help understanding your needs. – Martin Scharrer♦ Aug 8 '11 at 10:54{}button. – Jake Aug 9 '11 at 6:20