I find methods to align the vertical alignment but not the horizontal.
Code
\documentclass{article}
\usepackage{xparse}
\usepackage{graphicx}
% http://tex.stackexchange.com/a/88624/13173
\newsavebox{\fminipagebox}
\NewDocumentEnvironment{fminipage}{m O{\fboxsep}}
{\par\kern#2\noindent\begin{lrbox}{\fminipagebox}
\begin{minipage}{#1}\ignorespaces}
{\end{minipage}\end{lrbox}%
\makebox[#1]{%
\kern\dimexpr-\fboxsep-\fboxrule\relax
\fbox{\usebox{\fminipagebox}}%
\kern\dimexpr-\fboxsep-\fboxrule\relax
}\par\kern#2
}
\begin{document}
\begin{fminipage}{16em}%\textwidth}
{\small
Seller: \textbf{Student A. Masi} \\
\\
Date: 30.9.2016 \\
Local food store
}
\end{fminipage}
\end{document}
Methods unsuccessfuly tested
-
With
raisebox
andhfill
% http://tex.stackexchange.com/q/16937/13173 % these not working when applied with \width etc: %\raisebox{-.5\height} %\hfill
OS: Debian 8.5 64 bit
Texlive: 2016
Hardware: Asus Zenbook UX303UA
Best Answer
A simple modification (the code in the answer you refer to was meant to make the box's borders stick in the margin):
Output with
showframe
Output without
showframe