Many times we see in books, some significant points, some tips and tricks are put in an attractive box with an image in it (usually the text will be in italics). I would like to achieve the same effect. I have referred this link : Adding an Image inside tcolorbox. And this is what I have achieved :
\documentclass[12pt]{article}
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[
% breakable,
left=0pt,
right=0pt,
top=8pt,
bottom=8pt,
colback=white,
colframe=red,
width=\textwidth,
enlarge left by=0mm,
boxsep=5pt,
arc=4pt,
outer arc=4pt,
]
\Large
\smash{\raisebox{-11pt}{\includegraphics[width=1cm,height=1cm]{colorbox}}}\hfill
\end{tcolorbox}
\end{document}
Output:
Now, my question is, How to align that image and add a text not at the center but as a paragraph.
What I want to achieve is :
Best Answer
Adjust the settings according to your needs:
Or with a different vertical alignment for the image: