Jump to content
Search Community

Split text line widths

niiku23 test
Moderator Tag

Recommended Posts

Hi,

 

Hoping somebody can help me with this please.

 

Codepen is here.

 

I would like the blue background colors to end at the end of each line width instead of stretching to the end of the container.

 

Using max-width: max-content;  works but not in i.e.

 

I don't really need the words split but I am wondering if i need to loop through each line and find each end words position to set the width of the line.

Surely there is a simple split text parameter to fix this?

 

Many thanks!

 

Nick

See the Pen MWOWMBE by niiku23 (@niiku23) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...