Hi everyone,
I'm really wondering something.I found that Internet Explorer doesn't
support using the css border settings on a tr element.
Anyone know of a good reason why? It doesn't make any sense to me. Also, I'm
curious if other browsers support it. Doesn't seem to be a bug as The
the tr element doesn't accept a border property according to
standards (according to
http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TR). The fact
that IE allows it is an IE...feature :)
I normally add the borders to td's (which necessitate that
cellspacing be set to 0 on the table)
On
TRs don't have a lot of things, because they're structure, not really
displayed. If you want to deal with row groups, use TBODY instead;
they'll accept pretty much everything. Or you can use a tr td CSS
class, so you're assigning elements to the TDs inside the TRs:
tr.myClass td { border-top:
The fact that IE allows it is an IE...feature
unless it is a bypass for an oversight in the standards ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL
to
accomplish that?
Dave
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 3:38 PM
To: CF-Talk
Subject: Re: SOT: tr and style=border...
the tr element doesn't accept a border property according to
standards (according to
http://www.w3.org
use TBODY, like I said earlier, and just assign a border to the whole
thing. That's the entire reason THEAD, TBODY, and TFOOT exist. Well,
not for borders, but for managing groups of rows.
cheers,
barneyb
On 8/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
It actually doesn't work in IE,
, 2005 3:38 PM
To: CF-Talk
Subject: Re: SOT: tr and style=border...
the tr element doesn't accept a border property according to
standards (according to
http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TR). The
fact that IE allows it is an IE...feature :)
I normally add the borders
Thanks but TBODY doesn't allow a css border either.
I still only see one way of doing it.
Dave
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 4:11 PM
To: CF-Talk
Subject: Re: SOT: tr and style=border...
use TBODY, like I said earlier
Yes, but it's pretty sad I would have to do that. Although, that might be
better than my previous solution.
Thanks,
Dave
-Original Message-
From: Jason Radosevich [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 4:12 PM
To: CF-Talk
Subject: RE: SOT: tr and style=border
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Thanks but TBODY doesn't allow a css border either.
colgroup?
--
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include stdjoke.h
Am I missing something? Is there an easier way to accomplish that?
Yes, get a pen and draw the border on your monitor :OD
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 11 August 2005 21:05
To: CF-Talk
Subject: RE: SOT: tr and style=border...
It actually
Hah...with thousands of users that would keep me busy anyway.there's that
job security again. And can you imagine the travel expense bill?
Dave
-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 4:32 PM
To: CF-Talk
Subject: RE: SOT: tr
Boy do I feel sheepish. ;) I was sure I'd done exactly that before,
but you're right, it doesn't work at all. Here's a way that does
work, at least in CSS2 browsers (which IE 6 isn't, unfortunately):
html
head
style type=text/css
tr#bordered td {
border-top: 2px solid #f00;
html
head
style type=text/css
tr#bordered td {
border-top: 2px solid #f00;
border-bottom: 2px solid #f00;
}
tr#bordered td:first-child { border-left: 2px solid #f00; } tr#bordered
td:last-child { border-right: 2px solid #f00; } /style /head body table
tr id=bordered
4:29 PM
To: CF-Talk
Subject: RE: SOT: tr and style=border...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Thanks but TBODY doesn't allow a css border either.
colgroup?
--
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http
Well, thanks, but I'm designing purely for IE. In this case, I ended up doing
this:
html
head
style
.FirstCell { border-left: 2px solid black; border-top: 2px solid black;
border-bottom: 2px solid black;}
.MiddleCell { border-top: 2px solid black; border-bottom: 2px solid black; }
PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 4:42 PM
To: CF-Talk
Subject: RE: SOT: tr and style=border...
Hah...with thousands of users that would keep me busy
anyway.there's that job security again. And can you
imagine the travel expense bill?
Dave
Slight modification that gives you the same result with a bit less code.
html
head
style
tr.MiddleCell td{ border-top: 2px solid black; border-bottom: 2px solid black; }
td.FirstCell { border-left: 2px solid black;}
td.LastCell { border-right: 2px solid black;} /style /head body
table
By using a row class, you can avoid some duplication in the CSS, and
the need for a 'middleCell' class. Still the same hackishness, but
(at least to me) seems slightly cleaner.
html
head
style type=text/css
tr.bordered td {
border-top: 2px solid #f00;
border-bottom: 2px solid
Interesting, but in what situation what a TD exist where it's not inside a
TR ?
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: 11 August 2005 20:42
To: CF-Talk
Subject: Re: SOT: tr and style=border...
TRs don't have a lot of things, because they're structure
Never in well formed markup. It's just often easier to reference all
TDs by a common container, rather than individually.
cheers,
barneyb
On 8/11/05, Russ Michaels [EMAIL PROTECTED] wrote:
Interesting, but in what situation what a TD exist where it's not inside a
TR ?
--
Barney Boisvert
Here is the javaScript solution I spoke of. It gives IE similar behavior to
CSS 2 compliant browsers.
html
head
style type=text/css
table
{
border-collapse: collapse;
}
tr#bordered td
{
border-top: 2px solid #f00;
border-bottom: 2px solid #f00;
}
tr#bordered
22 matches
Mail list logo