HTML Question

Out of context: Reply #9

  • Started
  • Last post
  • 9 Responses
  • lukus_W0

    The general idea would be...

    <div style="overflow:auto">
    <p style="float: left; width: 80%">I'm trying to put an image on the same line as some HTML text, but the problem is the text wont sit on the same line as the image.</p>
    <img src="my_image.png" style="float:left; width: 20%;" />
    </div>

    ...but remember that inline styles are bad - you should definitely have a separate stylesheet like juhls said.

    • .. the 'overflow: auto' is used to clear the floatslukus_W

View thread