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

Home Forums CSS Parent with wrapping text and height auto plus floating elements

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #208552

    Been googling a lot and wondering if this can be done without JavaScript. Posted an answer on SO on how to wrap a text around a div that’s floated in the right bottom of the parent. Doing that was alright, there was some general info (using a second floated element as a pusher) but no demo – or anyone using a pseudo element for it. So I made this :


    Not too much trouble so far. But then the next phase… responsiveness. Would there be any pure CSS approach to this when the height of the parent would be auto, determined by the size of the containing text only? At this point, when no height is set the floated children will not inherit any…

    Rewrite attempt

    Very interested in any insights.

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