Home  >  Q&A  >  body text

How to output multiple lines of text behind a picture and juxtapose it with the picture

How to output multiple lines of text and images behind a picture

whxnwhxn2014 days ago2131

reply all(4)I'll reply

  • Single

    Single2019-05-09 16:58:57

    Put the image in a div and float it on the left. Put the text in a div and float it. Then adjust the page as needed

    reply
    0
  • whxn

    Can the left and right floats control the distance? Why do I jump directly to the border when I float? The middle ones cannot be separated.

    whxn · 2019-05-09 17:00:43
    Single

    It can be separated, or you can convert the image into a block element and operate it directly.

    Single · 2019-05-10 15:36:38
    Single

    Add margin-left to the left-floating div. Add margin-right to the right-floating div to control it.

    Single · 2019-05-10 15:38:39
  • Cancelreply