Best Credit Cards - MPAA - Cheap Flights - Cell Phones - Ali Aboutaam

PDA

View Full Version : using tables to wrap text around ads


Hishighness
Sep 28th 2006, 9:22 am
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:

http://img136.imageshack.us/img136/158/tablesm5.png

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

sketch
Sep 28th 2006, 1:40 pm
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

lisa3876
Sep 28th 2006, 2:16 pm
I thought you could put align="left" as a table attribute to make it float. Seems like I've done that before.

sketch
Sep 28th 2006, 5:26 pm
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.

Hishighness
Sep 28th 2006, 6:47 pm
Thanks for the help. :D