Category : line-breaks

.heading { font-weight: bold; vertical-align: top; height: auto; font-stretch: extra-expanded !important; overflow: hidden; display: inline-block !important; word-wrap: break-word !important; word-break: break-all !important; white-space: normal; } .heading span { font-size: 1.1rem !important; word-break: break-all !important; display: inline-block !important; width: -webkit-max-content; width: -moz-max-content; width: max-content; word-wrap: break-word !important; /* margin: 0; */ display: block !important; white-space: normal; ..

Read more

I have a small problem and I couldn’t find how to solve it. I’m using a text animation on the home screen. I’m running the animation with with regex. The code works correctly, but because the texts are lined up side by side, they form meaningless sentences. I want to arrange the sentences according to ..

Read more

So, I have a bunch of array data that I want to write in HTML, but for some of them I need to insert line breaks instead of showing them as mere paragraphs. The following is an example. let welcome= document.createElement("div") welcome.setAttribute(‘id’, ‘welcome’) welcome.className = ‘w3-container w3-center w3-animate-opacity’ let welcomeTextNode = document.createTextNode(`Hi, using the side ..

Read more