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 to td's (which necessitate that cellspacing be set to 0 on the table) On 8/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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 style properties on the tr element in the MSDN tech stuff does not list the border settings as options (border, border-left, border-right, border-top, border-bottom). Dave ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214618 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: tr and style=border...
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: 1px solid #999; } I do this sort of thing a lot, particularly for alternating row colors and stuff like that. cheers, barneyb On 8/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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 style properties on the tr element in the MSDN tech stuff does not list the border settings as options (border, border-left, border-right, border-top, border-bottom). Dave -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214619 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: tr and style=border...
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 PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214630 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
It actually doesn't work in IE, so it's not even a feature there. so, to put a border around an entire 'row', I had to put left border on the first TD, right border on the last TD, and top and bottom on all of them. That seems kind of kludgey. Am I missing something? Is there an easier way 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/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) ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214633 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: tr and style=border...
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, so it's not even a feature there. so, to put a border around an entire 'row', I had to put left border on the first TD, right border on the last TD, and top and bottom on all of them. That seems kind of kludgey. Am I missing something? Is there an easier way to accomplish that? Dave -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214636 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
you probably could nest the tables, and style the nested table. The W3 validator will accept that. On Thu, 11 Aug 2005 15:05:07 -0500, Dave.Phillips wrote It actually doesn't work in IE, so it's not even a feature there. so, to put a border around an entire 'row', I had to put left border on the first TD, right border on the last TD, and top and bottom on all of them. That seems kind of kludgey. Am I missing something? Is there an easier way 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/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) * * The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214637 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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, 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 ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214640 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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... you probably could nest the tables, and style the nested table. The W3 validator will accept that. On Thu, 11 Aug 2005 15:05:07 -0500, Dave.Phillips wrote It actually doesn't work in IE, so it's not even a feature there. so, to put a border around an entire 'row', I had to put left border on the first TD, right border on the last TD, and top and bottom on all of them. That seems kind of kludgey. Am I missing something? Is there an easier way 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/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) * * The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214642 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
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 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214641 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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 doesn't work in IE, so it's not even a feature there. so, to put a border around an entire 'row', I had to put left border on the first TD, right border on the last TD, and top and bottom on all of them. That seems kind of kludgey. Am I missing something? Is there an easier way to accomplish that? Dave -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.5/68 - Release Date: 10/08/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214643 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
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 -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 4:32 PM To: CF-Talk Subject: RE: SOT: tr and style=border... Am I missing something? Is there an easier way to accomplish that? Yes, get a pen and draw the border on your monitor :OD ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214650 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: tr and style=border...
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; 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 tdtbody/td tdtbody/td tdtbody/td /tr /table /body /html On 8/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks but TBODY doesn't allow a css border either. I still only see one way of doing it. Dave -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214649 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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 tdtbody/td tdtbody/td tdtbody/td /tr /table /body /html A little JS could be employed to compensate for IE's short comings. If it's worth it to you. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214653 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
Nope, unfortunately, it doesn't allow css border(s) in it's style element either (I tested it too). I think I'm convinced that someone messed up and left this out of the implementation. I'm sure I'm not the only person in the world who has a need to put a border around just one row (without adding extra code by nesting tables or messing with the TD's). Anyway, thanks for everyone's input, it's been lively. If anyone does come up with an alternative solution, let us know. Dave -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 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://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214654 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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; } .LastCell { border-right: 2px solid black; border-top: 2px solid black; border-bottom: 2px solid black;} /style /head body table cellspacing=0 style=border: 2px solid blue; tr tdRow 1 Col 1/td tdRow 1 Col 2/td tdRow 1 Col 3/td tdRow 1 Col 4/td tdRow 1 Col 5/td /tr tr td class=FirstCellRow 2 Col 1/td td class=MiddleCellRow 2 Col 2/td td class=MiddleCellRow 2 Col 3/td td class=MiddleCellRow 2 Col 4/td td class=LastCellRow 2 Col 5/td /tr tr tdRow 3 Col 1/td tdRow 3 Col 2/td tdRow 3 Col 3/td tdRow 1 Col 4/td tdRow 1 Col 5/td /tr /table ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214655 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
OK, stop scrolling the page, I have to wait for the white out solution to dry before I can draw any more lines. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h -Original Message- From: [EMAIL 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 -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 4:32 PM To: CF-Talk Subject: RE: SOT: tr and style=border... Am I missing something? Is there an easier way to accomplish that? Yes, get a pen and draw the border on your monitor :OD ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214656 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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 cellspacing=0 style=border: 2px solid blue; tr tdRow 1 Col 1/td tdRow 1 Col 2/td tdRow 1 Col 3/td tdRow 1 Col 4/td tdRow 1 Col 5/td /tr tr class=MiddleCell td class=FirstCellRow 2 Col 1/td tdRow 2 Col 2/td tdRow 2 Col 3/td tdRow 2 Col 4/td td class=LastCellRow 2 Col 5/td /tr tr tdRow 3 Col 1/td tdRow 3 Col 2/td tdRow 3 Col 3/td tdRow 1 Col 4/td tdRow 1 Col 5/td /tr /table -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214657 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: tr and style=border...
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 #f00; } tr.bordered td.firstCell { border-left: 2px solid #f00; } tr.bordered td.lastCell { border-right: 2px solid #f00; } /style /head body table tr class=bordered td class=firstCelltbody/td tdtbody/td td class=lastCelltbody/td /tr /table /body /html On 8/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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; } .LastCell { border-right: 2px solid black; border-top: 2px solid black; border-bottom: 2px solid black;} /style /head body table cellspacing=0 style=border: 2px solid blue; tr tdRow 1 Col 1/td tdRow 1 Col 2/td tdRow 1 Col 3/td tdRow 1 Col 4/td tdRow 1 Col 5/td /tr tr td class=FirstCellRow 2 Col 1/td td class=MiddleCellRow 2 Col 2/td td class=MiddleCellRow 2 Col 3/td td class=MiddleCellRow 2 Col 4/td td class=LastCellRow 2 Col 5/td /tr tr tdRow 3 Col 1/td tdRow 3 Col 2/td tdRow 3 Col 3/td tdRow 1 Col 4/td tdRow 1 Col 5/td /tr /table -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214658 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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, 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: 1px solid #999; } I do this sort of thing a lot, particularly for alternating row colors and stuff like that. cheers, barneyb On 8/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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 style properties on the tr element in the MSDN tech stuff does not list the border settings as options (border, border-left, border-right, border-top, border-bottom). Dave -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214664 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: tr and style=border...
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 [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214668 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: SOT: tr and style=border...
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 td.firstChild, tr#bordered td:first-child { border-left: 2px solid #f00; } tr#bordered td.lastChild, tr#bordered td:last-child { border-right: 2px solid #f00; } /style script type=text/javascript function IEfix() { bodyObjs = document.getElementById(theTable).getElementsByTagName(TBODY); for (i=0; ibodyObjs.length; i++) { rowObjs = bodyObjs[i].getElementsByTagName(TR); for (j=0; jrowObjs.length; j++) { tdObjs = rowObjs[j].getElementsByTagName(TD); tdObjs[0].className += firstChild; tdObjs[tdObjs.length - 1].className += lastChild; } } } window.onload = IEfix; /script /head body Hello table id=theTable tr tdtbody/td tdtbody/td tdtbody/td /tr tr id=bordered tdtbody/td tdtbody/td tdtbody/td /tr tr tdtbody/td tdtbody/td tdtbody/td /tr /table /body /html -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214670 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54