edit: i’v managed
its supposed to be % and not px
This is my CSS:
margin: 0 auto;
and it looks something like this:
Super hero league
(can’t add pic)
Why when i add " width:100px ;" to the code,
(become 2\3 lines)?
would have to see the code to know for sure, at a guess the width is going to the parent container holding the text. by setting it to 100px it forces the content to go into multiple lines.
post a link to code pen and I will be able to tell you with certainty what is going on
My guess is your container is 100px wide and since multiple words cannot fit within 100px,. it then goes to the next line.
You either make the div wider., or place a wrapper element around the part you dont want to wrap.