using tables to wrap text around ads

Discussion in 'HTML & Website Design' started by Hishighness, Sep 28, 2006.

  1. #1
    Hey everyone, I've triedl ooking this up, and I can find colspan and rowspan but I can't get them to work in the way I want. I don't know if it's possible or not with simple html.

    Basically what I'm looking for is this:

    [​IMG]

    I'd like the text to wrap around my ad in one big reverse c shaped table. I need it to be all one big table because I'm doing it on a blog, and the tag just fills in the text where I set it.

    Is this possible? and if so can someone steer me in the right direction?

    Thanks,
    HH
     
    Hishighness, Sep 28, 2006 IP
  2. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #2
    It's not possible to make tables wrap. What you need to do is put your ad in a <DIV> tag and float it to whichever side you want:

    <div style="float: left">AD</div>

    Check out http://www.w3schools.com/css/pr_class_float.asp for more info
     
    sketch, Sep 28, 2006 IP
  3. lisa3876

    lisa3876 Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I thought you could put align="left" as a table attribute to make it float. Seems like I've done that before.
     
    lisa3876, Sep 28, 2006 IP
  4. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #4
    I was mistaken, lisa is right, although tables involve a lot more code than divs (opening the table, then the row, then the cell, then closing all 3). If you want your page to load faster, go with divs & CSS.
     
    sketch, Sep 28, 2006 IP
  5. Hishighness

    Hishighness Well-Known Member

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #5
    Thanks for the help. :D
     
    Hishighness, Sep 28, 2006 IP