How can I wrap the main text around both an image and small text label underneath

Discussion in 'CSS' started by Fly, Aug 17, 2008.

  1. #1
    I have always used tables for my web page layouts but am now trying to do the layouts using css instead.

    Using css I know how wrap a main body of text around an image that has been floated to the right or left.

    However, I want to achieve the following. Have an image with some separate text underneath (labelling the image), then have the main body of text wrap around both the image and the text label underneath. I can do this with table cells but is it possible using css?

    I didn't want to create new images including text. Any help would be appreciated.
     
    Fly, Aug 17, 2008 IP
  2. ozan

    ozan Peon

    Messages:
    82
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put both the image and the caption in a single div and float the div. This can be done so long as you set the width of the div.
     
    ozan, Aug 17, 2008 IP
  3. Fly

    Fly Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks so much Ozan. Very simple and obvious. I'm still getting my head around divs but I'll get there eventually. I'm determined. LOL :D
     
    Fly, Aug 17, 2008 IP