Forums

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

Home Forums CSS [Solved] Image inside text block (CSS)

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #150289
    William Castro
    Participant

    Hi everybody, can someone help me with a little trick in css? I need to put an image (<a><img/></a>) inside a text block (<p></p>) like the image above:

    Image…

    #150295
    Paulie_D
    Member

    Pretty certain this isn’t going to happen.

    I don’t know if any property that will split inline text across multiple lines like that.

    #150298
    Paulie_D
    Member

    The text can’t flow around multiple lines actually splitting text…just doesn’t happen.

    If you look at the image, I would guess that the ‘mug’ has been placed on top of the actual text in Photshop, hiding what is behind it.

    Unfortunately, sometimes design exceeds actual capabilities.

    Wait….if it needs to overlay the text…you might be able to do something really sneaky with pseudo elements.

    #150302
    William Castro
    Participant

    Yes guys, thanks for your answers, but i realized that is not possible! I was looking for something like a float:center that doesn’t exist. I just made the image in the photoshop, but the image was not meant to be over the text, the text is meant to be around the image, but i’ll have to make just with float:left and ‘right’, thanks again!

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