Align Text to image (but only a section of text)

  • Unknown's avatar

    HTML and CSS total newbie needs help.
    I’m trying to create sections in an article, each section has a small image and description placed next to the image (image set as “align to left” with text).

    My problem is, that in some sections (where there’s very little text), a text from another section + image is disrupted/ is merged with the previous one. It looks like this:

    Now, I would like to have “Febirdary” section starting from a new line.
    How can I do that?

    I already tried to put these sections into

    , but from what I’ve read, this issue has to be solved in CSS.

    Isn’t there any possibility of solving this just with HTML? Can you recommend any solution or an article / tutorial where I can learn how to do this? (I’m already looking for this solution for some h, but can’t find the right one)
  • Unknown's avatar

    Never mind. I found the solution on my own.

    Just add

    in your HTML editor at the end of the section.
  • Unknown's avatar
    * Add this line to your HTML editor at the end of the section.
    
  • Unknown's avatar

    for God’s sake. Remove “*”
    <*div style="clear:both;"></div*>

  • Unknown's avatar

    haha thanks for sharing the solution, it can be usefull

  • The topic ‘Align Text to image (but only a section of text)’ is closed to new replies.