Width for paragraphs | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Width for paragraphs

how can use width Xpx for my <p> with out using css? I tried this, too: <p width=50px>hello world</p> and it doesn't work. plz help plz like

25th Apr 2017, 4:03 AM
lala
5 Answers
+ 4
the style attribute is css, which he doesn't want to use. what about <p width="50px">hello world</p> does this work for you?
25th Apr 2017, 5:07 AM
Mario L.
Mario L. - avatar
+ 3
<p style="width:50px">Hello world</p> :)
25th Apr 2017, 4:35 AM
Nikola Stojiljkovic
Nikola Stojiljkovic - avatar
+ 2
must use <p style="width: 50px"> <p width="50px"> or <p width="50"> is not workable.
25th Apr 2017, 6:53 AM
Calviղ
Calviղ - avatar
+ 2
Maybe, this can be achieved like this: <div style="width:50px"><p>Hello world</p></div> :)
25th Apr 2017, 7:19 AM
Nikola Stojiljkovic
Nikola Stojiljkovic - avatar
0
Look for "call" css in the same file html use this Example: like guide: <p style="background-color: red">Hello</p> Good Luck
25th Apr 2017, 4:18 AM
Alberto Del Angel
Alberto Del Angel - avatar