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?
July 23, 2013 at 10:38 am
#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.