I want to have borders on all cells within a table. In HTML I caan put
<TABLE BORDER="1"> and every cell has a border.
How do I get the same effect by using stylesheets. The border attribute
seems to relate to the table as an entity, not the cells.
TIA
Bob
<STYLE>
TABLE
{
BORDER-RIGHT: black 1pt solid;
BORDER-TOP: black 1pt solid;
BORDER-LEFT: black 1pt solid;
BORDER-BOTTOM: black 1pt solid
}
TD
{
BORDER-RIGHT: black 1pt solid;
BORDER-TOP: black 1pt solid;
BORDER-LEFT: black 1pt solid;
BORDER-BOTTOM: black 1pt solid
}
</STYLE>
--------------------
* From: "Bob Phillips" <bob.ph...@freeuk.com>
* Subject: Cell borders
* Date: Wed, 5 Sep 2001 19:11:34 +0100
* Lines: 14
* X-Priority: 3
* X-MSMail-Priority: Normal
* X-Newsreader: Microsoft Outlook Express 5.00.2615.200
* X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
* Message-ID: <u5kN0VjNBHA.960@tkmsftngp03>
* Newsgroups:
microsoft.public.windows.inetexplorer.ie55.programming.css
* NNTP-Posting-Host: ppp-0-194.chel-5800-6.access.uk.tiscali.com
212.159.160.194
* Path: cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp03
* Xref: cppssbbsa01.microsoft.com
microsoft.public.windows.inetexplorer.ie55.programming.css:1054
* X-Tomcat-NG:
microsoft.public.windows.inetexplorer.ie55.programming.css
*
*
* Hi,
*
* I want to have borders on all cells within a table. In HTML I caan
put
* <TABLE BORDER="1"> and every cell has a border.
*
* How do I get the same effect by using stylesheets. The border
attribute
* seems to relate to the table as an entity, not the cells.
*
* TIA
*
* Bob
*
*
*
----
John PJ Perry
Support Engineer
Microsoft Developer Support
This posting is provided “AS IS” with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
I get it. We have to do it for every cell which I hoped to avoid, but
following on from my previos post we can do it as a sub-style as it were.
This has been helpful - thanks heaps to you and Manish.
Regards
Bob
John PJ Perry <JPe...@microsoft.com> wrote in message
news:FsqLBlk...@cppssbbsa01.microsoft.com...
table, td {
border-width: 1px;
border-style: solid;
}
"Bob Phillips" <bob.ph...@freeuk.com> wrote...