4 replies [Last post]
bronzino1
bronzino1's picture
Offline
Regular
Last seen: 9 years 6 weeks ago
Timezone: GMT-6
Joined: 2010-03-07
Posts: 29
Points: 42

Hello - brand new to this forum and to CSS, really. I did a search for this topic but did not see an answer (nor did I get one googling).

I am using an IFRAME that contains a table. I have specified via CSS that at least one cell in the table have a solid, colored border-right and border-bottom. Here is the CSS I wrote:

.showtd1    { font-family: Arial; font-size: 12px; color: #FFFFFF; width: 3%; background: #A97B76; border-right: 1 solid #61403D; border-bottom: 1 solid #61403D; border-left: 0px; border-top: 0px; padding-left: 4; padding-right: 4; padding-top: 2; padding-bottom: 2; }

This shows up fine in IE, but not in FF. I cannot figure out why, except that maybe FF doesn't support the border-* properties in IFRAME. Can anyone confirm that to be the case? And is there a way around it?

Here are the applicable links:

Page with IFRAME
Screen Cap in IE
Screen Cap in FF

TIA for any help...

bronzino1
bronzino1's picture
Offline
Regular
Last seen: 9 years 6 weeks ago
Timezone: GMT-6
Joined: 2010-03-07
Posts: 29
Points: 42

I'm going to amend my own

I'm going to amend my own post, because I'm testing further and seeing that I'm having trouble setting border properties for FF in a table, regardless of whether the table is in IFRAME.

FF responds as you might expect if I specify a border all the way around the cell (of unspecified width) or no border at all. It does not work if I try, e.g., "border-right" or "border-left." I can't figure that out; IIRC, it works fine with images. I tried to use "tbody," "div" and "span," but none of them work in a table cell.

bronzino1
bronzino1's picture
Offline
Regular
Last seen: 9 years 6 weeks ago
Timezone: GMT-6
Joined: 2010-03-07
Posts: 29
Points: 42

And I just figured it out -

And I just figured it out - it was my html editor not specifying widths for the borders. If I knew how to mark something as solved, I would.

SOLVED. lol.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 days 15 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Welcome to the forum. Glad

Welcome to the forum. Glad we could be of such timely help. Laughing out loud

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

bronzino1
bronzino1's picture
Offline
Regular
Last seen: 9 years 6 weeks ago
Timezone: GMT-6
Joined: 2010-03-07
Posts: 29
Points: 42

thank you so much!

thank you so much!