Search code examples
cssline

CSS Line Breaking with Image


As we all know we use <br> to break the lines in websites... But I would like to have image as line breaker. Like example:

Here is some text and I will line break it like this ->
-* -* -* -* -* -* -* -* -* -* -*
and some more text here

How I can do it?


Solution

  • Give it a block display:

    img {
      display: block;
    }
    Lorem ipsum <img src="https://placekitten.com/100/100" /> dolar sit amet