Jump to content

Problem in text alignment

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
thatsme

thatsme

    Programmer

  • Members
  • PipPipPipPip
  • 176 posts
Hi, when i put image into the left side of the document, text goes by the side of the image, but when the end of the image is reached each line is started from the very left side of the document, how to make text go like image would still be not over

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts

Quote

Hi, when i put image into the left side of the document, text goes by the side of the image, but when the end of the image is reached each line is started from the very left side of the document, how to make text go like image would still be not over
What you mean is you have picture and you want the text to stay aligned to the right side of it instead of going back to the far left when the end of the picture is reached.

I can find nothing to do so, I would say you need a container or table for something like this but I'm not sure.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#3
semprance

semprance

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
One way to do it would be to create two div containers where your content is, put the image in first container and the text in the second then float them both to the left. After that, set the div with the image in to the same width as the image.

That way the text will stay in the container to the right hand side and won't wrap underneath the image.