The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IMG with and alignment doesn’t play nice with H2 tag with border

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #36756

    Hello everyone,

    I am having a problem that I can not figure out. I have an img with an align left. There is text wrapping around it from the right, and at the top of this text is an H2 tag with a border-bottom. For some reason, even though all of the text is wrapping correctly, the border is not affected by the image, and spans the entire width of the container going under the image.

    Has anyone ever come across something like this?

    Any input would be appreciated.



    Actually, I just figured it out, but for everyone’s benefit, I will tell you the solution. I placed a display:table; in the css on the H2 tag.


Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.