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;}
..mytable tr{border:1px solid #000000;}
..mytable th{border:0px;}
..mytable tr.pages {border:0px;}
doesn't work, can't have the border around tr. The table has no border at
all.
may this work ?
bob 23 51848
Bob Bedford wrote: 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;}
.mytable tr{border:1px solid #000000;} .mytable th{border:0px;} .mytable tr.pages {border:0px;}
doesn't work, can't have the border around tr. The table has no border at all.
may this work ?
bob
td {
border-top: 1px solid black;
border-bottom: 1px solid black;
}
> td { border-top: 1px solid black; border-bottom: 1px solid black; }
______________________________
cell1 cell2 cell3 .... cellX
______________________________
And what about left and right ???? cell1 has no left line, and cellX either,
no right line.
> td { border-top: 1px solid black; border-bottom: 1px solid black; }
or maybe it's possible to draw a line around an entire table, but no line
around the last one (it's what I'm trying to do)
I've all my table centered in the page, but I don't want the content of the
last cell outside the table (as the result is awfull). I'd like to remove
the border around the last line.
Bob Bedford wrote: td { border-top: 1px solid black; border-bottom: 1px solid black; } or maybe it's possible to draw a line around an entire table, but no line around the last one (it's what I'm trying to do)
The last what? table? tr?
I've all my table centered in the page, but I don't want the content of the last cell outside the table (as the result is awfull). I'd like to remove the border around the last line.
Not sure if I'm following, but maybe you're after something
like this?
table,td{
border-style:solid;
border-color:black;
}
table{
border-width:1px 1px 0 1px;
}
td{
border-width:0 0 1px 0;
}
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
>> or maybe it's possible to draw a line around an entire table, but no line around the last one (it's what I'm trying to do)
The last what? table? tr?
Sorry, around the last TR. The last TR should not have a border. I've all my table centered in the page, but I don't want the content of the last cell outside the table (as the result is awfull). I'd like to remove the border around the last line.
Not sure if I'm following, but maybe you're after something like this?
table,td{ border-style:solid; border-color:black; } table{ border-width:1px 1px 0 1px; } td{ border-width:0 0 1px 0; }
The last row in this case has the left and right border. I want to avoid
this.
"Bob Bedford" <be******@notforspammershotmail.com> wrote: 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.
That's as clear as mud.
so .mytable{border:0px;}
.mytable tr{border:1px solid #000000;} .mytable th{border:0px;} .mytable tr.pages {border:0px;}
doesn't work, can't have the border around tr. The table has no border at all.
Although tr's affect rendering, they are themselves not rendered, thus
they cannot be styled.
may this work ?
A stab in the dark at what you may be trying to do: http://homepage.ntlworld.com/spartanicus/tr_border.htm
Note that for this to produce a seamless border the cellspacing has to
be null.
--
Spartanicus
In article <42**********************@news.sunrise.ch>, bedford1
@notforspammershotmail.com says... or maybe it's possible to draw a line around an entire table, but no line around the last one (it's what I'm trying to do)
The last what? table? tr?
Sorry, around the last TR. The last TR should not have a border.
I've all my table centered in the page, but I don't want the content of the last cell outside the table (as the result is awfull). I'd like to remove the border around the last line.
Not sure if I'm following, but maybe you're after something like this?
table,td{ border-style:solid; border-color:black; } table{ border-width:1px 1px 0 1px; } td{ border-width:0 0 1px 0; }
The last row in this case has the left and right border. I want to avoid this.
Then create a class specifically for the last rows of td, and set the
borders the way you want it.
td.bottom {
border-width:0 0 0 0
}
saz wrote: In article <42**********************@news.sunrise.ch>, bedford1 @notforspammershotmail.com says... >> or maybe it's possible to draw a line around an entire >> table, but no line around the last one (it's what I'm >> trying to do) > > The last what? table? tr?
Sorry, around the last TR. The last TR should not have a border.
Okay, understand that now. > table,td{ > border-style:solid; > border-color:black; > } > table{ > border-width:1px 1px 0 1px; > } > td{ > border-width:0 0 1px 0; > }
The last row in this case has the left and right border. I want to avoid this.
Then create a class specifically for the last rows of td, and set the borders the way you want it.
td.bottom { border-width:0 0 0 0 }
No, he then still has the borders on the table which include
the last row.
He'll need to give the first and last column of td's a class,
except for the ones in the last row.
Taking class foo for the left td's and class bar for the right
ones, you'd get something like this:
td{border-top:1px solid black;}
td.foo{border-left:1px solid black;}
td.bar{border-right:1px solid black;}
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
"Spartanicus" <me@privacy.net> a écrit dans le message de news: e3********************************@n...utvinternet.ie... "Bob Bedford" <be******@notforspammershotmail.com> wrote:
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. That's as clear as mud.
so .mytable{border:0px;}
.mytable tr{border:1px solid #000000;} .mytable th{border:0px;} .mytable tr.pages {border:0px;}
doesn't work, can't have the border around tr. The table has no border at all.
Although tr's affect rendering, they are themselves not rendered, thus they cannot be styled.
OK
A stab in the dark at what you may be trying to do: http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left
bottom and right.
Bob
"Bob Bedford" <be******@notforspammershotmail.com> wrote: A stab in the dark at what you may be trying to do: http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left bottom and right.
Still clear as mud, upload a graphic that demonstrates what you want.
--
Spartanicus
"Spartanicus" <me@privacy.net> a écrit dans le message de news: sg********************************@n...utvinternet.ie... "Bob Bedford" <be******@notforspammershotmail.com> wrote:
A stab in the dark at what you may be trying to do: http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left bottom and right.
Still clear as mud, upload a graphic that demonstrates what you want.
----------------------
| foo foo foo foo foo |
----------------------
| foo foo foo foo foo |
----------------------
bar bar bar bar bar
The last line contain datas differents than foo (actually a grid for
changing pages < 1 2 3 4 5.....) and I don't want a border around.
that's why I wanted control on TR, in order to put a border aroud (aroud
foo) but not around bar
hope it's clear !
Bob Bedford wrote: "Spartanicus" <me@privacy.net> a écrit dans le message de news: sg********************************@n...utvinternet.ie...
"Bob Bedford" <be******@notforspammershotmail.com> wrote:
A stab in the dark at what you may be trying to do: http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left bottom and right.
Still clear as mud, upload a graphic that demonstrates what you want.
---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
The last line contain datas differents than foo (actually a grid for changing pages < 1 2 3 4 5.....) and I don't want a border around. that's why I wanted control on TR, in order to put a border aroud (aroud foo) but not around bar
hope it's clear !
td.foo_left {
border-left: 1px solid black;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
td.foo_middle {
border-top: 1px solid black;
border-bottom: 1px solid black;
}
td.foo_right {
border-right: 1px solid black;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
td.bar {
border: none;
}
<td class=foo_left ...
<td class=foo_middle ...
<td class=foo_right ...
<td class=bar ...
i am simply amazed that with the information given you couldnt figure
this one out yourself
gl
martin
Bob Bedford wrote: "Spartanicus" <me@privacy.net> a écrit dans le message de news: sg********************************@n...utvinternet.ie...
"Bob Bedford" <be******@notforspammershotmail.com> wrote:
A stab in the dark at what you may be trying to do: http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left bottom and right.
Still clear as mud, upload a graphic that demonstrates what you want.
---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
The last line contain datas differents than foo (actually a grid for changing pages < 1 2 3 4 5.....) and I don't want a border around. that's why I wanted control on TR, in order to put a border aroud (aroud foo) but not around bar
hope it's clear !
td {
border: 1px solid black;
}
td.foo_middle {
border-left: none;
border-right: none;
}
td.bar {
border-left: none;
border-right: none;
border-bottom: none;
}
or maybe more elegant
td.foo_left {
border-left: 1px solid black;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
td.foo_middle {
border-top: 1px solid black;
border-bottom: 1px solid black;
}
td.foo_right {
border-right: 1px solid black;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
td.bar {
border-left: none;
border-right: none;
border-bottom: none;
}
enough to play with
In article <Xn*****************@130.133.1.4>, el*********@tiscali.nl
says... saz wrote:
In article <42**********************@news.sunrise.ch>, bedford1 @notforspammershotmail.com says... >> or maybe it's possible to draw a line around an entire >> table, but no line around the last one (it's what I'm >> trying to do) > > The last what? table? tr?
Sorry, around the last TR. The last TR should not have a border. Okay, understand that now. table,td{ > border-style:solid; > border-color:black; > } > table{ > border-width:1px 1px 0 1px; > } > td{ > border-width:0 0 1px 0; > }
The last row in this case has the left and right border. I want to avoid this.
Then create a class specifically for the last rows of td, and set the borders the way you want it.
td.bottom { border-width:0 0 0 0 }
No, he then still has the borders on the table which include the last row.
He'll need to give the first and last column of td's a class, except for the ones in the last row. Taking class foo for the left td's and class bar for the right ones, you'd get something like this:
td{border-top:1px solid black;} td.foo{border-left:1px solid black;} td.bar{border-right:1px solid black;}
I'm confused, and I give up. I have no idea what he is trying to
accomplish, nor do I care.
To the OP: buy a decent CSS book.
Martin! wrote: Bob Bedford wrote:
"Spartanicus" <me@privacy.net> a écrit dans le message de news: sg********************************@n...tanicu s.utvinte rnet.ie...
"Bob Bedford" <be******@notforspammershotmail.com> wrote:
> A stab in the dark at what you may be trying to do: > http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left bottom and right.
Still clear as mud, upload a graphic that demonstrates what you want.
---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
The last line contain datas differents than foo (actually a grid for changing pages < 1 2 3 4 5.....) and I don't want a border around. that's why I wanted control on TR, in order to put a border aroud (aroud foo) but not around bar
hope it's clear !
td { border: 1px solid black; } td.foo_middle { border-left: none; border-right: none; } td.bar { border-left: none; border-right: none; border-bottom: none; } or maybe more elegant
td.foo_left { border-left: 1px solid black; border-top: 1px solid black; border-bottom: 1px solid black; } td.foo_middle { border-top: 1px solid black; border-bottom: 1px solid black; } td.foo_right { border-right: 1px solid black; border-top: 1px solid black; border-bottom: 1px solid black; } td.bar { border-left: none; border-right: none; border-bottom: none; }
enough to play with
(kan toch korter ;-) )
td{border-top:1px solid black;}
td.foo_left{border-left:1px solid black;}
td.foo_right{border-right:1px solid black;}
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
"Bob Bedford" <be******@notforspammershotmail.com> wrote: http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left bottom and right.
Still clear as mud, upload a graphic that demonstrates what you want.
---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
You could easily have done that slight modification yourself, example is
updated.
--
Spartanicus
in comp.infosystems. www.authoring.stylesheets, Bob Bedford wrote: ---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
Aha.
The last line contain datas differents than foo (actually a grid for changing pages < 1 2 3 4 5.....)
It sounds like it is not actually part of the table, but something
irrelated? Maybe put it outside table woudl be better
and I don't want a border around. that's why I wanted control on TR, in order to put a border aroud (aroud foo) but not around bar
table {border-collapse:collapse;}
tr {border:solid}
tr.last {border:none}
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
"Lauri Raittila" <la***@raittila.cjb.net> a écrit dans le message de news: MP************************@news.individual.net... in comp.infosystems.www.authoring.stylesheets, Bob Bedford wrote:
---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
Aha.
The last line contain datas differents than foo (actually a grid for changing pages < 1 2 3 4 5.....)
It sounds like it is not actually part of the table, but something irrelated? Maybe put it outside table woudl be better
and I don't want a border around. that's why I wanted control on TR, in order to put a border aroud (aroud foo) but not around bar
table {border-collapse:collapse;} tr {border:solid} tr.last {border:none}
That's what I'm trying to do since the beginning, but it doesn't work
"Spartanicus" <me@privacy.net> a écrit dans le message de news: 39********************************@n...utvinternet.ie... "Bob Bedford" <be******@notforspammershotmail.com> wrote:
> http://homepage.ntlworld.com/spartanicus/tr_border.htm
Ok, now add a third line: the new created one must have no border on left bottom and right.
Still clear as mud, upload a graphic that demonstrates what you want.
---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
You could easily have done that slight modification yourself, example is updated.
I know ! but was missing the tr border. that was my first question.
The main purpose of this is allow my clients to manage their own CSS. I mean
the page will be shown as a frame source on other websites.
I wanted to keep it as simple as possible, with 4-5 styles to manage. But if
there is no other solution, I give up.
Also, I managed it by creating a "BIG" table without border, and putting the
foo datas in a table (where I show the border) and a cell of the big table
contains bar datas.
Thanks for help !
Bob
in comp.infosystems. www.authoring.stylesheets, Bob Bedford wrote: "Lauri Raittila" <la***@raittila.cjb.net> a écrit dans le message de news: MP************************@news.individual.net... in comp.infosystems.www.authoring.stylesheets, Bob Bedford wrote:
---------------------- | foo foo foo foo foo | ---------------------- | foo foo foo foo foo | ---------------------- bar bar bar bar bar
table {border-collapse:collapse;} tr {border:solid} tr.last {border:none}
That's what I'm trying to do since the beginning, but it doesn't work
Worked for me, on Opera 8, and afaik works on all browsers. (though some
might have problem with border shorthand without width)
Did you have border-collapse:collapse? (borders for tablerows are ignored
in separated border modell). Or do you mean something else?
Where is your URL?
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
> Worked for me, on Opera 8, and afaik works on all browsers. (though some might have problem with border shorthand without width) Did you have border-collapse:collapse? (borders for tablerows are ignored in separated border modell). Or do you mean something else?
Ok' I'll try again.
Where is your URL?
Offline. still in dev !
Thanks.
Bob
Bob Bedford wrote: Worked for me, on Opera 8, and afaik works on all browsers. (though some might have problem with border shorthand without width) Did you have border-collapse:collapse? (borders for tablerows are ignored in separated border modell). Or do you mean something else?
Ok' I'll try again.
Where is your URL?
Offline. still in dev !
Thanks.
Bob
there are places on the internet, you know, where they offer to host
also your webmirracles for free. i do get the impression you found your
way online somehow, now its maybe time to let go of some of your babies
and let them have a home of their own, or maybe sharing a roof with who
knows.
Bob Bedford wrote: 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;}
.mytable tr{border:1px solid #000000;} .mytable th{border:0px;} .mytable tr.pages {border:0px;}
doesn't work, can't have the border around tr. The table has no border at all.
may this work ?
bob
Try the 'border-collapse: collapse' rule on the table.
Regards,
N.Demos
Example Page:
=============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Final//EN"
"http://www.w3.org/TR/html4/final.dtd">
<HTML>
<HEAD>
<TITLE></TITLE>
<STYLE type="text/css">
BODY {
color: #FFFFFF;
background-color: #000000;
}
TABLE#mytable {
border-collapse: collapse;
border-width: 0px;
}
TD {
text-align: left;
padding: 1px 5px 1px 3px;
color: #000000;
background-color: #AAFF00;
border-style: solid;
border-color: #FF0000;
border-width: 3px 0px 0px 0px;
}
</STYLE>
</HEAD>
<BODY>
<TABLE id="mytable">
<TR>
<TD>Cell A1</TD>
<TD>Cell A2</TD>
<TD>Cell A3</TD>
</TR>
<TR>
<TD>Cell B1</TD>
<TD>Cell B2</TD>
<TD>Cell B3</TD>
</TR>
<TR>
<TD>Cell C1</TD>
<TD>Cell C2</TD>
<TD>Cell C3</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--
Change "seven" to a digit to email me. This discussion thread is closed Replies have been disabled for this discussion. Similar topics
10 posts
views
Thread by Vigil |
last post: by
|
15 posts
views
Thread by Oliver |
last post: by
|
5 posts
views
Thread by Mel |
last post: by
|
4 posts
views
Thread by Aris |
last post: by
|
8 posts
views
Thread by UJ |
last post: by
|
3 posts
views
Thread by mcwd |
last post: by
| | | | | | | | | | | | | |