0

I want to display some text inside a div, and I want the text to have a specific way of being displayed no matter the screen.

Imagine the following:

Hello I'm a very long marketing title

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

I want it to be displayed like that:

Hello I'm a very
long marketing title

Lorem ipsum dolor sit amet,
consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enim ad minim veniam.

Right now I use <br /> but it's not really responsive, so I thought to make a div with a custom shape which will work on any device. Here's the idea:

custom div shape

Do you think it's possible with CSS ? I've investigated CSS triangle but can't find a way.

dolig
  • 106
  • 7

0 Answers0