HTML image help

Discussion in 'Tech Support' started by Spacecowboy92, 25 Jul 2007.

  1. Spacecowboy92

    Spacecowboy92 Gettin' Lazy

    Joined:
    10 Apr 2006
    Posts:
    757
    Likes Received:
    0
    This is quite a simple question for someone who kows what there doing.
    Im coding a simple website but I cant rember how to get images and text to line up.
    Example...
    i-----i......Title.....i-----i
    i-----i.................i-----i
    i-----i.................i-----i
    Which is what I want

    If the boxes are the images, how could I do that, I know how to put images in and titles and stuff, but they always end up on diffrent lines.
    Example...
    i-----i
    i-----i
    i-----i
    ............Title
    .........................i-----i
    .........................i-----i
    .........................i-----i
    Which is what I dont want.

    Thanks.

    Edit: Ignore the dots, there to represent spaces.
     
  2. Firehed

    Firehed Why not? I own a domain to match.

    Joined:
    15 Feb 2004
    Posts:
    12,574
    Likes Received:
    16
    float? I think to do exactly what you want you'll need to float one image left and the other right, and perhaps play with the margins a bit.

    Either use <img src="..." style="float: left;"> or <img src="..." class="someclass"> to call the image, with .someclass { float: left; } in a stylesheet for the latter.
     
  3. Spacecowboy92

    Spacecowboy92 Gettin' Lazy

    Joined:
    10 Apr 2006
    Posts:
    757
    Likes Received:
    0
    Thanks for the help firehed. Float did exactly what I wanted.
     

Share This Page