Fix the height of the block?

Guys, sit blunt. The gray block is a fixed height, how to make red block out of text, and not on gray block ? Since text can be any number, top indent to do for the red block is not an option.

https://codepen.io/brezze/pen/MQaXpj
June 8th 19 at 16:35
1 answer
June 8th 19 at 16:37
The simplest solution using the pseudo-element
https://codepen.io/mdss/pen/wyKVbR

Find more questions by tags CSS