B
B
Breeze12018-02-01 22:37:48
css
Breeze1, 2018-02-01 22:37:48

Fix block height?

Guys, I'm sitting dumb. The gray block has a fixed height, what is the best way to make the red block bounce off the text, and not the gray block? Since there can be as much text as you want, it's not an option to make a top indent for the red block.
https://codepen.io/brezze/pen/MQaXpj

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mdss, 2018-02-02
@mdss

Easiest solution via pseudo element
https://codepen.io/mdss/pen/wyKVbR

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question