How to type text on both side in one paragraph..? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to type text on both side in one paragraph..?

Html

28th Jan 2020, 7:04 AM
HimanShu kushwaha
6 Answers
+ 2
I would use CSS and create two boxes with text inside of them, then position them where you want, I ran into the same Problem, here is my solution if you are intrested: The html: <div id="text-container-1"> <p id="text-left"> Name <br> Adress <br> Zipcode <br> School <br> Grade</p> </div> <div id="text-container-2"> <p id="text-left"> Name <br> Adress <br> Zipcode <br> School <br> Grade</p> </div> The CSS: #text-container-1 { width: 18.750em; Display: block; Float: left; margin-left: 37%; margin-top: 2%; padding: 0; border: 0.063em; } #text-container-2 { width: 18.750em; Display: block; Float: right; margin-right: 37%; margin-top: 2%; padding: 0; border: 0.063em; } #text-left { Width: 12.500em; Text-align: left; Float: left; Display: block; font-size: 1.250em; } #text-right { Width: 12.500em; Text-align: right; Float: right; Display: block; font-size: 1.250em; }
28th Jan 2020, 8:46 AM
SushiHD
SushiHD - avatar
+ 1
Both sides of what?
28th Jan 2020, 7:22 AM
Sonic
Sonic - avatar
28th Jan 2020, 7:54 AM
Calviղ
Calviղ - avatar
+ 1
use [text-align:right]
28th Jan 2020, 8:33 AM
ISTIAQUE ZAMAN
ISTIAQUE ZAMAN - avatar
0
Text-align:left; and text-align:right; in one paragraph ..... I mean - In both corners.
28th Jan 2020, 7:29 AM
HimanShu kushwaha
0
Thanks frends ... But this is not my questions ..... My questions is : - Something has to be written on the right side and left side of the page and it should be empty between them. and this condition full-fill in one paragraph..
28th Jan 2020, 9:59 AM
HimanShu kushwaha