I’m not sure what you’re trying to achieve. A p element is a block level element by default, so adding display:block to it won’t change anything.
Perhaps you can provide more code and/or a codepen with what you’re trying to achieve? And perhaps an image of what you’re trying to accomplish?
Using breaks to make a line break when the text content is a series of paragraphs or indeed a single paragraph or text snippet would be incorrect semantically.
However where you have a line break within the same paragraph and the meaning carries over multiple lines (like a poem or address or styized paragraph like yours) then the break element is the correct choice.
Bear in mind that should the screen width be smaller than your line of text then the text will wrap at different points as well as at the break points.
Another way to have achieved this would have been to give explicit width and margin 0 auto to your class.
.block1912 {
width: 20em;/* am just guessing at the number, this one may not be right; you could also use % for more fluid resuts*/
margin:0 auto;
}
The reason I would suggest this, echoing what Paul said, is because BR tags are a permeant part of the markup and as such, the text will break at that specific word when the container changes size.
Actually, making a paragraph responsive is not difficult at all. In fact, it requires no CSS at all. It’s just a case of not adding any CSS that will break its naturally responsive behaviour.
To explain what you have been shown is that margin: auto will centre a block, while the text flow within the block is aligned by the text-align property.
Paul’s example uses the <br> to explicitly define line breaks, then the display: table with “shrink-wrap” the element width to the longest line length in the text.
Example from dresden_phoenix and John use width and max-width to constrain the block width, here the lines break naturally where they run out of space within the given width, no need for <br>.
Without any width constraint at all, the block will fill the full width and appear to be aligned as the text is.
This example may be something like you tried, with spans (displayed as blocks) explicitly defining line breaks, instead of br. Then display: table shrink-wraps the width, as in Paul’s example.