473,378 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

a border around a row of a table ?

Mel
is it possible to draw a border around a row of a table ?

example please...

thanks
Jul 21 '05 #1
5 75477
Els
Mel wrote:
is it possible to draw a border around a row of a table ?

example please...

thanks


table{border-collapse:collapse;}
tr.row td{
border-width:1px 0;
border-style:solid;
border-color:black;
}
tr.row td.left{
border-width:1px 0 1px 1px;
}
tr.row td.right{
border-width:1px 1px 1px 0;
}
<table>
<tr class="row">
<td class="left"></td>
<td></td>
<td></td>
<td class="right"></td>
</tr>
<tr>
.....
</tr>
</table>
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #2
On Fri, 3 Jun 2005 18:32:10 +0200, Els wrote:
Mel wrote:
is it possible to draw a border around a row of a table ?

example please...

thanks


table{border-collapse:collapse;}
tr.row td{
border-width:1px 0;
border-style:solid;
border-color:black;
}
tr.row td.left{
border-width:1px 0 1px 1px;
}
tr.row td.right{
border-width:1px 1px 1px 0;
}
<table>
<tr class="row">
<td class="left"></td>
<td></td>
<td></td>
<td class="right"></td>
</tr>
<tr>
....
</tr>
</table>


I tried the much simpler and more intuitive
tr.row { border: 1px solid black; }
(see http://www.trawna.com/test/rowborder.html for a live example)

It works in Opera 6.04 and 7.23 and Firefox 1.02. Mozilla 1.0 puts a
border across the top and bottom of the row, but not the left and right.
Netscape 6.2.3 and IE 6.0 (and presumably all older versions) don't
display any border at all. I've never been good at reading standards;
is this an area that is undefined, or is it just spotty conformance?

--
Greg Schmidt gr***@trawna.com
Trawna Publications http://trawna.com/
Jul 21 '05 #3
Els
Greg Schmidt wrote:
On Fri, 3 Jun 2005 18:32:10 +0200, Els wrote:
Mel wrote:
is it possible to draw a border around a row of a table ?

example please...

thanks
table{border-collapse:collapse;}
tr.row td{
border-width:1px 0;
border-style:solid;
border-color:black;
}
tr.row td.left{
border-width:1px 0 1px 1px;
}
tr.row td.right{
border-width:1px 1px 1px 0;
}
<table>
<tr class="row">
<td class="left"></td>
<td></td>
<td></td>
<td class="right"></td>
</tr>
<tr>
....
</tr>
</table>


I tried the much simpler and more intuitive
tr.row { border: 1px solid black; }
(see http://www.trawna.com/test/rowborder.html for a live example)

It works in Opera 6.04 and 7.23 and Firefox 1.02. Mozilla 1.0 puts a
border across the top and bottom of the row, but not the left and right.
Netscape 6.2.3 and IE 6.0 (and presumably all older versions) don't
display any border at all. I've never been good at reading standards;


Maybe that's IE's problem too ;-)
is this an area that is undefined, or is it just spotty conformance?


Specs for both CSS 2.1 and CSS 1 state that borders are applicable to
all elements, that would include <tr> imo. So it's just not supported
by IE, and since IE is still being used by a vast amount of surfers, I
use the work around above.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #4
in comp.infosystems.www.authoring.stylesheets, Els wrote:
Mel wrote:
is it possible to draw a border around a row of a table ?

example please...

thanks


table{border-collapse:collapse;}


Well, after above
tr.row {border:2px solid red} is enough.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/bu...tml?AID=882173
Jul 21 '05 #5
Els
Lauri Raittila wrote:
in comp.infosystems.www.authoring.stylesheets, Els wrote:
Mel wrote:
is it possible to draw a border around a row of a table ?

example please...

thanks


table{border-collapse:collapse;}


Well, after above
tr.row {border:2px solid red} is enough.


Not in IE.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Markus | last post by:
hi, i am new to the xsl-fo-pdf-stuff... i want to create a pdf document with apache-fop. in this document i do have a border around two blocks. my designer want to have round corners for the...
10
by: Vigil | last post by:
I am trying to put a 7px border around a page. If the contents don't fill up the viewport, then the border must appear all around the viewport. If the page is larger than the viewport, then the...
7
by: jeff | last post by:
Doing this: td{border: 1px solid black} gives me 2px borders on adjacent cells. How do I get the same size border on inside cell walls as outside, much as <table border="1" cellspacing="0">...
23
by: Bob Bedford | last post by:
I've a table. The table must not have any border. The TR (every line) must have a border, but not the lines between cells. The TR.pages must have no border. so .mytable{border:0px;} ...
8
by: UJ | last post by:
I have a table with multiple cells and I want to draw a box around the entire table but not around the individual cells. How do I do that? TIA - Jeff.
1
by: constantlearner | last post by:
I have the following code, which you can paste into an html file and try. In IE, a border appears around the selection box. How do I make the border around the selection box transparent, or have no...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
5
by: Hendrik Maryns | last post by:
Hi, A friend complained that the border around the lower code part on http://tcl.sfs.uni-tuebingen.de/~hendrik/keyboard.shtml is too small for the content. This is because his window size is so...
1
by: drappaport | last post by:
When my website is viewed in IE6 on a PC and IE 5.2 on a mac my images that I've used as links have an ugly blue border around them. When you click on them it changes to a purple border. I am trying...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.