Forums

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

Home Forums CSS Can float img have margin-bottom if there’s text below but not if there isn’t? Reply To: Can float img have margin-bottom if there’s text below but not if there isn’t?

#144260
will_wallace85
Participant

Off the top of my head, sounds like a javascript thing. Check if the height of the containing element >= the height of the image and add bottom padding if true.