0
How align paragraph in centre
3 ответов
+ 2
margin: auto only works on block displaying elements, css can't calculate auto margin for inline elements, to center the text in a tag, use text-align:center, to center the p element it self wrap it in a div or any block container, or set its display to block, then you can use margin: auto.
0
you can use this in css
p {
margin: 0 auto;
}
this will align the paragraph horizontally
0
thanks