Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 04-25-2005, 07:16 PM   PM User | #1
Radboy
New to the CF scene

 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Radboy is an unknown quantity at this point
Problem with border around td

Hi.

I have some HTML skills, but no expert.

Recently added Google's AdSense ads to my site. In order to display the vertical tower, I had to put the ad (Javascript snippet) into a frame .. in *each* web page. The code begins like this:

(I replaced the less-than + greater-than characters with [brackets], in case this forum converts them.)

[table width="164" border="0" align="right" cellpadding="0" cellspacing="2"]
[tr][td]
[script type="text/javascript"][!--
blah blah blah...

My problem is that I coded my CSS to to put a black border around tables & td's (cuz pages look like krap without them):

http://ghost.radified.com/

BUT I *don't* want a border around my ads.

I tried removing the tr + td for the ad frame code, leaving just the [frame] and that works great in IE, but the display is bad in Firefox + Mozilla, with the frame not working. All you see is the ad, over to the left (despite the "right" coding) .. all by itself. You see no text until the ad ends (have to scroll down).

Guess I could remove the border coding from CSS, but that would suk cuz then I'd have to code each page by hand, and I have *hundreds* of pages.

How can I (easily?) remove the border around the ads?

I was thinking of making the border for the ads the SAME COLOR as the page's background (white), but not sure how to do that.

My CSS is here:

http://ghost.radified.com/styles01.css

Home page:

http://radified.com/index2.html

Appreciate any insight.
Radboy is offline   Reply With Quote
Old 04-25-2005, 11:00 PM   PM User | #2
mehere
Regular Coder

 
Join Date: Jan 2005
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
mehere is an unknown quantity at this point
Quote:
Originally Posted by Radboy

Guess I could remove the border coding from CSS, but that would suk cuz then I'd have to code each page by hand, and I have *hundreds* of pages.

How can I (easily?) remove the border around the ads?

I was thinking of making the border for the ads the SAME COLOR as the page's background (white), but not sure how to do that.

Appreciate any insight.
Try something like this:

Create another entry in your CSS file as:
Code:
.no_border
 { border-width: 0px; }
Then add:
Code:
[table width="164" border="0" align="right" cellpadding="0" cellspacing="2" class="no_border"]
[tr][td class="no_border"]
[script type="text/javascript"][!--
Or try just adding 'style' info to these lines:
Code:
[table width="164" border="0" align="right" cellpadding="0" cellspacing="2" style="border-width: 0px;"]
[tr][td style="border-width: 0px;"]
[script type="text/javascript"][!--
mehere is offline   Reply With Quote
Old 04-26-2005, 12:21 AM   PM User | #3
Radboy
New to the CF scene

 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Radboy is an unknown quantity at this point
Woohoo! It worked!

*YOU*, my friend, are a wizard!

This stuff just stokes me so much.

I went thru h3ll last night after removing the [tr][td] tags .. only to discover after an hour's work that Firefox & Mozilla didn't like the code. So I had to put it all back .. and I was dog-tired to begin with.

I love when stuff works.

Appreciate the help.

R.
Laguna beach
Radboy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:07 PM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.