+ 2

Can anyone tell me that how to put text in a rectangle?

Please tell me that how to put a text in a rectangle. Its very important as i am coding a wonderful u.i design for my practice. Thanks

21st Feb 2021, 3:12 PM
Jagjot Singh
Jagjot Singh - avatar
3 ответов
+ 3
<div style="border:2px solid green;text-align:center;padding:1em 0;">framed text</div>
21st Feb 2021, 3:22 PM
visph
visph - avatar
+ 3
Please link your attempt here and describe where you want put the text. When you have a p tag with a text and a background color then it is a text in rectangle as you expected.
21st Feb 2021, 3:24 PM
JaScript
JaScript - avatar
+ 1
Please add-show your attempt so the community can help you more easily :) Btw just use a div or a paragraph, and add a border or a background, then task done! :)
21st Feb 2021, 4:03 PM
Matthew
Matthew - avatar