NEED HELP WITH CODE, Alignment problem in table |
NEED HELP WITH CODE, Alignment problem in table |
safezone |
Jun 22 2007, 07:25 AM
Post
#1
|
Group: Members Posts: 2 Joined: 22-June 07 Member No.: 3,148 |
I'm really sorry to ask but I simply can't figure this out. I'm not a trained programmer either and I've looked through every available resource I know of. So....
I've placed a Yahoo ad as a banner on my web site and I can't get the thing to align=center no matter what I do. It stays left justified. I have set the <td> as left justified because I want the text below the ad to be left justified but I want the ad to be centered in that portion of the table. I had a banner ad there before and used the <center> command and it worked just fine. The new ad uses javascript, which I know nothing about. If someone can take a look at my site and explain to me how I can make the ad center and keep the text left justified, I'd appreciate it. The URL in question is: http://www.safezonellc.com/personalzone1_1.html Thanks |
pandy |
Jun 22 2007, 08:12 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Which one is the Yahoo! ad? I see a bunch of banners in the right margin and another one below all content. The latter bunch is centered.
|
safezone |
Jun 22 2007, 08:28 AM
Post
#3
|
Group: Members Posts: 2 Joined: 22-June 07 Member No.: 3,148 |
Pandy,
Thanks for the quick reply. The ad is at the top and is identified as Yahoo Ads. It looks fine in IE but is left justified in Firefox and Netscape. It's just above the Heading PERSONAL ZONE I |
pandy |
Jun 22 2007, 08:59 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
All I see there is a big blank space. Maybe they geo filter and are racist against swedes.
Is it this code? CODE <table> <td valign="top" bgcolor="F0F8FF"> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <!---Start of Zone I Message---> <br> <center> <script language="JavaScript" type="text/javascript"> <!-- ctxt_ad_partner = "4381303260"; ctxt_ad_section = ""; ctxt_ad_bg = "f0f8ff"; ctxt_ad_width = 728; ctxt_ad_height = 90; ctxt_ad_bc = "999999"; ctxt_ad_cc = "F4F4F4"; ctxt_ad_lc = "2D8EC8"; ctxt_ad_tc = "666666"; ctxt_ad_uc = "999999"; // --> </script> <script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js"> </script> </center> CENTER should do it, but the code is structurally broken. That might 'hide' the CENTER in some browsers. That second nested table seems redundant. Try just removing this bit. CODE <table width="100%" border="0" cellpadding="2" cellspacing="0"> You can't have content directly inside TABLE. It must be in a table cell. Even if the above may fix the problem you should use the validator and let it help you to correct all the errors or you may get more surprises. http://htmlhelp.com/cgi-bin/validate.cgi?u...s&input=yes |
Lo-Fi Version | Time is now: 23rd April 2024 - 09:39 AM |