If you do not specify the height of the block, the content goes beyond its boundaries. How to make the height automatically set depending on the amount of content? The auto value does not help.

  • 3
    Give an example of the code, please, maybe just where. - AlexOrtizzz
  • in such cases, you should always include a demo (jsfiddle, for example). Many other CSS properties play a role: position , float , etc. Therefore, without a specific example, this is fortune telling on the coffee grounds. - Oleg

1 answer 1

set the block, the one in which the content, float:left . for frequent blocks they behave this way when the parent already has a wrap and this is corrected by the same flow