in Education by
.abc{ white-space:pre-wrap; } :He is a good boy he is also kind' Run code snippetExpand snippet Say I am displaying the message in Angular application in 2 line Like this: LabelStudent:Ram is a good boy, he is also kind. I want the second line message i.e. He is also kind, should be displayed just below the first message and not beneath the label JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
This can easily be achieved with flexbox. I have reproduced a demo over here. HTML:
He is a good boy he is also kind'
CSS: .container { display: flex; flex-direction: row; } .information { display: flex; flex-direction: column; }

Related questions

0 votes
    I have a very little experience developing UI but I wanted to accomplish a task quickly where I have to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I have a component billing that includes ngb-tabset component of Ng Bootstrap. ngb-tabset has the following ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
0 votes
    I have a component billing that includes ngb-tabset component of Ng Bootstrap. ngb-tabset has the following ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I have a component billing that includes ngb-tabset component of Ng Bootstrap. ngb-tabset has the following ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    Running VS2003/05 under Vista makes the former screw up the display at least 50% of the time - you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    Running VS2003/05 under Vista makes the former screw up the display at least 50% of the time - you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    Running VS2003/05 under Vista makes the former screw up the display at least 50% of the time - you ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    Write a program which sends the name of a text file from the client to server and display the message on the ... file present or not. Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    Which Window object method is used to display a message in a dialog box? (a) alert() (b) prompt( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    The strategy used to ensure that the message is a multiple of the cipher block size without compromising the size ... 1)Ciphertext stealing (2)Padding (3)Refactoring (4)Diffusion...
asked Mar 19, 2021 in Technology by JackTerrance
0 votes
    Which command is used to clear the screen and display the operating system prompt on the first line of the display? Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    1. Write a function in python to read the content from a text file “poem.txt” line by line and display the same on screen Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    I've got two different apps that I am hosting (well the second one is about to go up) on Amazon EC2. ... path ; ec2-describe-instances Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    How can you fix a broken commit? A. git reset B. git commit –amend C. git fix D. git rebase...
asked Dec 23, 2022 in Technology by JackTerrance
...