[Tex/LaTex] How to create a warning box like this (see the figure to get the idea)

framed

Scenario

I want to create a warning box (or pitfall box) that satisfies the following creteria:

  1. It can be broken across pages.
  2. It can contain images, displayed equations, begin{minipage}, \begin{multicols} and \lstinputlisting.
  3. It occupies the whole width of the page.
  4. It is enclosed by a red frame.
  5. It looks like the following figure but the background color should be yellowish.

Bird's View

alt text

Zoomed-in View

alt text

Best Answer

\documentclass{article}
\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{pifont,mdframed}

\newenvironment{warning}
  {\par\begin{mdframed}[linewidth=2pt,linecolor=red]%
    \begin{list}{}{\leftmargin=1cm
                   \labelwidth=\leftmargin}\item[\Large\ding{43}]}
  {\end{list}\end{mdframed}\par}

\begin{document}
\blindtext
\begin{warning}
\blindtext
\end{warning}
\blindtext[2]
\begin{warning}
\blindtext[2]
\end{warning}

\end{document}