Home > Blockchain >  How do I keep my text on two lines when using css?
How do I keep my text on two lines when using css?

Time:05-17

I need the following to display on two lines and stay this way as the browser size is being adjusted:

Lowe's Inc.

——Lowe's University Project

CodePudding user response:

you can use max-width or br tag also.

CodePudding user response:

Add this:

"your line"
<br>
"your other line"

And it'll work. BR stands for break line, so, it will create a new line.

CodePudding user response:

You can use two different <p> tag for new line or use <br> tag and use white-space:nowrap to show all the text without linebreak.

p{
 overflow: scroll; 
  white-space: nowrap;
}
<pre>using two p tag </pre>
<p>Dynamically strategize exceptional sources and functionalized vortals. Competently predominate holistic manufactured products without extensive potentialities.</p>
<p>Collaboratively actualize transparent meta-services rather than high-payoff communities. Conveniently deliver impactful potentialities through cross functional. </p>

<pre>using br tag </pre>
<p>Assertively seize cooperative internal or "organic" sources and cross-platform leadership skills. Competently visualize stand-alone benefits. <br> Uniquely implement granular interfaces via ubiquitous metrics. Monotonectally plagiarize equity invested testing procedures for cutting-edge.</p>

  • Related