![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
New to the CF scene Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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. |
|
|
|
|
|
PM User | #2 | |
|
Regular Coder ![]() Join Date: Jan 2005
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Quote:
Create another entry in your CSS file as: Code:
.no_border
{ border-width: 0px; }
Code:
[table width="164" border="0" align="right" cellpadding="0" cellspacing="2" class="no_border"] [tr][td class="no_border"] [script type="text/javascript"][!-- 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"][!-- |
|
|
|
|
|
|
PM User | #3 |
|
New to the CF scene Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|