Good day!
Please tell me what are the ways of centering the rubber block, I found only one, namely:
html
<div id="box"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed </div>
css
body, html { text-align: center; } div { display: inline-block; min-width: 450px; max-width: 1200px; height: 80px; padding: 10px; background: #ffffa2; border: 1px solid red; text-align: left; }
The width of the block should be directly dependent on the content (although in the example above, this is not quite the case).
Google and Yandex, did not give intelligible options ...