Align bottom using mdframed

I'm using mdframed to create a box around two lines of text so that I can insert a colored left border. Here's my MWE:

\documentclass{book}

\usepackage{mdframed}

\newmdenv[topline=false,rightline=false,bottomline=false,linewidth=2pt]{leftbot}
\setlength{\parindent}{0pt}
\setlength{\parskip}{15pt}

\newcommand{\leftborder}[1]{
\begin{leftbot}
{
\fontsize{11pt}{0pt}
\selectfont
\MakeUppercase{Use Cases}
\par
}
{ % Title
\fontsize{25pt}{25pt}
\selectfont
\textbf{#1}
}
\end{leftbot}
}

\begin{document}
\leftborder{Internet of Things}
\end{document}


The result is actually not bad at all:

But it's slightly different from what I want:

Nevermind the line color and the font, I already managed those two. The problem is how the text is aligned with respect to the border. In my version, the text appears to be vertically centered, but the design version is aligned to the bottom. How can I do that?

• Please note that your \fontsize{25pt}{25pt} is not really well chosen, nor is \fontsize{11pt}{0pt} – user31729 Jan 19 '18 at 20:41
• I know, but this is never supposed to span multiple lines, this actually came from design. – André Fratelli Jan 21 '18 at 0:40

Change innerbottommargin to 0pt or even a negative value, say, 1ex. 0pt will place the descdender of g on the bottom line.

\documentclass{book}

\usepackage{mdframed}

\newmdenv[topline=false,innerbottommargin=-1ex,rightline=false,bottomline=false,linewidth=2pt]{leftbot}
\setlength{\parindent}{0pt}
\setlength{\parskip}{15pt}

\newcommand{\leftborder}[1]{
\begin{leftbot}
{
\fontsize{11pt}{0pt}
\selectfont
\MakeUppercase{Use Cases}
\par
}
{ % Title
\fontsize{25pt}{25pt}
\selectfont
\textbf{#1}
}
\end{leftbot}
}

\begin{document}
\leftborder{Internet of Things}
\end{document}

• +1 always for the you excellent answer. Is it arrived my upvpte? – Sebastiano Jan 19 '18 at 20:37
• @Christian, this does work for the text "Internet of Things", but the space between the two lines grew instead of bringing "USE CASES" down as well. Would you know a fix for that? – André Fratelli Jan 19 '18 at 21:06
• (Although, I might just ask the designer if this is OK. But that will have to wait until Monday...) – André Fratelli Jan 19 '18 at 21:07
• @AndréFratelli: mdframed offers innertopmargin as option as well. – user31729 Jan 19 '18 at 21:24
• @ChristianHupfer great, I'll give it a go! – André Fratelli Jan 22 '18 at 14:47
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5941442847251892, "perplexity": 2112.7832696304727}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-39/segments/1568514573331.86/warc/CC-MAIN-20190918193432-20190918215432-00211.warc.gz"}