Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cell borders

0 views
Skip to first unread message

Bob Phillips

unread,
Sep 5, 2001, 2:11:34 PM9/5/01
to

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

unread,
Sep 5, 2001, 4:27:47 PM9/5/01
to
Here's a Style sheet sample you can play around with to get the effect you
want.

<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.

Bob Phillips

unread,
Sep 5, 2001, 7:06:10 PM9/5/01
to
John,

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...

Rowland Shaw

unread,
Sep 6, 2001, 9:21:39 AM9/6/01
to
in your <style> block:

table, td {
border-width: 1px;
border-style: solid;
}


"Bob Phillips" <bob.ph...@freeuk.com> wrote...

0 new messages