📜 ⬆️ ⬇️

Images that go beyond the boundaries of the post on Habré

Many have seen that on Habré images in posts sometimes climbs beyond the boundaries of a post.
Need to do something. It is ugly and not convenient.

Solving this is easy; you need the parser to automatically wrap all the images in a container with overflow: auto. But it is better to code JavaScript, which would calculate the width of the content zone, and all the images in the content zone, which are wider than itself, would be wrapped in a DIV with overflow: auto.

So I will take my leave.

')

Source: https://habr.com/ru/post/42443/


All Articles