Hello. How can you actually stretch the div block by its content? I tried this here, but it did not work:

<div style="clear:both;"> содСрТимоС </div> 
  • add more context to the question - ikoolik
  • Yes, to some extent it helped to achieve a common goal ... Thank you =) - AseN

1 answer 1

Use this code:

 <div style="display:inline-block;"> содСрТимоС </div>