Categories CSS How to turn off word wrapping in CSS? Post author By John Au-Yeung Post date February 13, 2023 No Comments on How to turn off word wrapping in CSS? Spread the love To turn off word wrapping in CSS, we set thr white-space property. For instance, we write div { white-space: pre-wrap; } to add the white-space: pre-wrap; style to turn off word wrapping in the div. Related Posts How to add CSS font border?To add CSS font border, we add the text-stroke property. For instance, we write h1… How to remove the space between inline or inline-block elements with CSS?Sometimes, we want to remove the space between inline or inline-block elements with CSS. In… How to remove pseudo elements with CSS?To remove pseudo elements with CSS, we set the content property. For instance, we write… By John Au-Yeung Web developer specializing in React, Vue, and front end development. View Archive → ← How to make a div into a link with JavaScript? → How to hide the scroll bar if not needed with CSS? Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Current ye@r * Leave this field empty