Given a relatively simple CSS:
div { width: 150px; }
<div> 12333-2333-233-23339392-332332323 </div>
How do I make it so that the string stays constrained to the
widthof 150, and wraps to a new line on the hyphen?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Replace your hyphens with this:
It’s called a ‘soft’ hyphen.