Position of bullet point when itemizing tcolorbox

I'm interested in itemizing some tcolorboxes, but I want the bullet point to be at the top-left corner of the tcolorbox. Below is an MWE,

\documentclass[12pt]{article}  \usepackage{tcolorbox}  \begin{document}  \begin{itemize} \item \begin{tcolorbox}[valign=top,colback=black]\textcolor{white}{How to get bullet to be at top of box?}\end{tcolorbox} \end{itemize}  \end{document} 

Position of bullet point when itemizing tcolorbox

Replay

maybe a bit too high ...

\documentclass[12pt]{article}

\usepackage{tcolorbox}

\begin{document}

    \begin{itemize}
        \item \begin{tcolorbox}[colback=black,box align=top]\textcolor{white}{How to get bullet to be at top of box?}\end{tcolorbox}
    \end{itemize}

\end{document}

Position of bullet point when itemizing tcolorbox



To get a bit more fine control, one could combine this with \raisebox

\documentclass[12pt]{article}

\usepackage{tcolorbox}

\begin{document}

    \begin{itemize}
        \item \raisebox{0.2cm}{\begin{tcolorbox}[colback=black,box align=top]\textcolor{white}{How to get bullet to be at top of box?}\end{tcolorbox}}
    \end{itemize}

\end{document}

Position of bullet point when itemizing tcolorbox



Version without box align=top (but you have to know, who large your box is):

\documentclass[12pt]{article}

\usepackage{tcolorbox}

\begin{document}

    \begin{itemize}
        \item \raisebox{-0.85cm}{\begin{tcolorbox}[colback=black]\textcolor{white}{How to get bullet to be at top of box?}\end{tcolorbox}}
    \end{itemize}

\end{document}

Category: itemize Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.233 (s). 12 q(s)