Code:
\documentclass[12pt]{article}
\usepackage[framemethod = tikz]{mdframed}
\usepackage{enumitem}
\usepackage[margin=1in]{geometry}
\begin{document}
\begin{mdframed}
% \section*{Objective:}
\begin{itemize}
\item To become familiar with the measurements in electric circuits
\item To determine the equivalent resistances of series and parallel combinations
\item To use Kirchhoff's laws
\end{itemize}
\end{mdframed}
\begin{mdframed}
\section*{Objective:}
\begin{itemize}
\item To become familiar with the measurements in electric circuits
\item To determine the equivalent resistances of series and parallel combinations
\item To use Kirchhoff's laws
\end{itemize}
\end{mdframed}
\end{document}
As we can see, the section
header produces extra whitespace between itself and the top of the mdframed
box. How much whitespace does it produce, and how to remove it?